From 2d8830bd01e47d3909998f66954273c139c90a33 Mon Sep 17 00:00:00 2001 From: Andre Miranda Date: Thu, 26 May 2016 00:27:22 -0300 Subject: [PATCH] Use GSourceFunc instead of GtkFunction, gtk_widget_get_realized instead of GTK_WIDGET_REALIZED --- panel-plugin/eyes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/eyes.c b/panel-plugin/eyes.c index 2565147..cd1bd8b 100644 --- a/panel-plugin/eyes.c +++ b/panel-plugin/eyes.c @@ -167,7 +167,7 @@ timer_cb(EyesPlugin *eyes) for (i = 0; i < eyes->num_eyes; i++) { - if (GTK_WIDGET_REALIZED(eyes->eyes[i])) + if (gtk_widget_get_realized (eyes->eyes[i])) { gdk_window_get_pointer(eyes->eyes[i]->window, &x, &y, NULL); @@ -278,7 +278,7 @@ eyes_applet_fill(EyesPlugin *eyes) if (eyes->timeout_id == 0) { eyes->timeout_id = g_timeout_add (UPDATE_TIMEOUT, - (GtkFunction)timer_cb, eyes); + (GSourceFunc)timer_cb, eyes); } return TRUE;