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;