summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-02-10 13:13:01 +0300
committermonsta <[email protected]>2017-02-12 17:25:11 +0300
commitbe0723d374fb643a3f47144538420ed6f4ed171c (patch)
treefb2e4e0fa09767610a38a50f5c55dbad4106f8e2
parentf84112f2bdb67ccc0a938fafec8228fd4f28ef7b (diff)
downloadmate-power-manager-be0723d374fb643a3f47144538420ed6f4ed171c.tar.bz2
mate-power-manager-be0723d374fb643a3f47144538420ed6f4ed171c.tar.xz
[GTK+3] brightness applet: fix mouse scroll over icon without popup
-rw-r--r--applets/brightness/brightness-applet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index 25ed525..0bee8d5 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -1142,6 +1142,9 @@ gpm_brightness_applet_init (GpmBrightnessApplet *applet)
/* prepare */
mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), MATE_PANEL_APPLET_EXPAND_MINOR);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_events (GTK_WIDGET (applet), GDK_SCROLL_MASK);
+#endif
/* show */
gtk_widget_show_all (GTK_WIDGET(applet));