From f311cf97ddbd2b24503beca339cd4c6c233ac9b6 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Mon, 9 Jan 2017 23:37:17 -0500 Subject: Replace no longer valid "expose-event" with "draw" expose-event is not available in GTK3, draw is its replacement. Stops warnings from inhibit applet when mate-panel is started/restarted --- applets/inhibit/inhibit-applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c index 1c3f836..93c67aa 100644 --- a/applets/inhibit/inhibit-applet.c +++ b/applets/inhibit/inhibit-applet.c @@ -607,7 +607,7 @@ gpm_inhibit_applet_init (GpmInhibitApplet *applet) /* We use g_signal_connect_after because letting the panel draw * the background is the only way to have the correct * background when a theme defines a background picture. */ - g_signal_connect_after (G_OBJECT(applet), "expose-event", + g_signal_connect_after (G_OBJECT(applet), "draw", G_CALLBACK(gpm_applet_draw_cb), NULL); g_signal_connect (G_OBJECT(applet), "change-background", -- cgit v1.2.1