summaryrefslogtreecommitdiff
path: root/src/core/eventqueue.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-02 18:20:30 +0100
committerZenWalker <[email protected]>2019-03-28 14:21:01 +0100
commitb0df98a1c2745b20325ae1d70413601dda9b46dd (patch)
tree5548e03f391640d87eba01ff61e73e4554497a05 /src/core/eventqueue.c
parent83a915dc851f7d3385e0d38f57cc249e038dcd1d (diff)
downloadmarco-b0df98a1c2745b20325ae1d70413601dda9b46dd.tar.bz2
marco-b0df98a1c2745b20325ae1d70413601dda9b46dd.tar.xz
Fix -Werror=cast-function-type
Bump glib-2 required version to 2.58: G_SOURCE_FUNC https://gitlab.gnome.org/GNOME/glib/commit/039fa6897bb4c5cd30caec8ee3add1a4ef612f76 Build & install:i export CC=gcci export CFLAGS=-Werror=cast-function-type ./autogen.sh --prefix=/usr make clean make sudo make install
Diffstat (limited to 'src/core/eventqueue.c')
-rw-r--r--src/core/eventqueue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/eventqueue.c b/src/core/eventqueue.c
index 290f9543..c85fdc51 100644
--- a/src/core/eventqueue.c
+++ b/src/core/eventqueue.c
@@ -22,6 +22,7 @@
* 02110-1301, USA. */
#include "eventqueue.h"
+#include <glib-object.h>
#include <X11/Xlib.h>
static gboolean eq_prepare (GSource *source,
@@ -70,7 +71,7 @@ meta_event_queue_new (Display *display, MetaEventQueueFunc func, gpointer data)
g_source_add_poll (source, &eq->poll_fd);
g_source_set_can_recurse (source, TRUE);
- g_source_set_callback (source, (GSourceFunc) func, data, NULL);
+ g_source_set_callback (source, G_SOURCE_FUNC (func), data, NULL);
g_source_attach (source, NULL);
g_source_unref (source);
@@ -152,7 +153,7 @@ eq_dispatch (GSource *source, GSourceFunc callback, gpointer user_data)
MetaEventQueueFunc func;
event = g_queue_pop_head (eq->events);
- func = (MetaEventQueueFunc) callback;
+ func = (MetaEventQueueFunc) G_CALLBACK (callback);
(* func) (event, user_data);