summaryrefslogtreecommitdiff
path: root/applets/brightness
diff options
context:
space:
mode:
Diffstat (limited to 'applets/brightness')
-rw-r--r--applets/brightness/brightness-applet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index e2ba076..a35ce2f 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -532,7 +532,11 @@ gpm_applet_key_press_cb (GpmBrightnessApplet *applet, GdkEventKey *event)
gdk_keyboard_ungrab (GDK_CURRENT_TIME);
gdk_pointer_ungrab (GDK_CURRENT_TIME);
gtk_grab_remove (GTK_WIDGET(applet));
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_state_flags (GTK_WIDGET(applet), GTK_STATE_FLAG_NORMAL, TRUE);
+#else
gtk_widget_set_state (GTK_WIDGET(applet), GTK_STATE_NORMAL);
+#endif
gtk_widget_hide (applet->popup);
applet->popped = FALSE;
gpm_applet_draw_cb (applet);