diff options
author | raveit65 <[email protected]> | 2016-06-03 20:06:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-07 11:01:41 +0200 |
commit | 61e3e2b7a6942c3283500728af2a956d2a1b9b1f (patch) | |
tree | 005a1783b0ff0d68487f69869b99cc665233a9d2 | |
parent | a872256b293f2fe2163750055b11274e18470efb (diff) | |
download | mate-power-manager-61e3e2b7a6942c3283500728af2a956d2a1b9b1f.tar.bz2 mate-power-manager-61e3e2b7a6942c3283500728af2a956d2a1b9b1f.tar.xz |
GTK+3 brightness applet: use the right gtk state flag
-rw-r--r-- | applets/brightness/brightness-applet.c | 4 |
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); |