gdk: Replace direct calls of _gdk_event_func with _gdk_event_emit()

For now that function just calls the event func.
This commit is contained in:
Benjamin Otte
2010-12-02 10:59:37 +01:00
parent b3e8504111
commit f9a9567731
7 changed files with 62 additions and 64 deletions

View File

@ -59,9 +59,16 @@ struct _GdkIOClosure
/* Private variable declarations
*/
GdkEventFunc _gdk_event_func = NULL; /* Callback for events */
gpointer _gdk_event_data = NULL;
GDestroyNotify _gdk_event_notify = NULL;
static GdkEventFunc _gdk_event_func = NULL; /* Callback for events */
static gpointer _gdk_event_data = NULL;
static GDestroyNotify _gdk_event_notify = NULL;
void
_gdk_event_emit (GdkEvent *event)
{
if (_gdk_event_func)
(*_gdk_event_func) (event, _gdk_event_data);
}
/*********************************************
* Functions for maintaining the event queue *