summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-01-09 23:37:17 -0500
committerraveit65 <[email protected]>2017-01-15 09:44:51 +0100
commitf311cf97ddbd2b24503beca339cd4c6c233ac9b6 (patch)
tree6070a7614e55ca080104b7e2e45909c206af7b0b /applets
parent3bfbbe95b8316c6b7da9ab37203bc8e74ad9b61c (diff)
downloadmate-power-manager-f311cf97ddbd2b24503beca339cd4c6c233ac9b6.tar.bz2
mate-power-manager-f311cf97ddbd2b24503beca339cd4c6c233ac9b6.tar.xz
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
Diffstat (limited to 'applets')
-rw-r--r--applets/inhibit/inhibit-applet.c2
1 files changed, 1 insertions, 1 deletions
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",