summaryrefslogtreecommitdiff
path: root/src/applet-main.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-06-09 12:02:02 +0300
committermonsta <[email protected]>2016-06-09 12:02:02 +0300
commitc59b52777a65115caaa7b419ba43d03106f4b914 (patch)
treef9879d4805fbfadee9b9586e1aaea6707238bf65 /src/applet-main.c
parentba1ac7612a41c9a04650c39e0d42020a90e43473 (diff)
downloadmate-indicator-applet-c59b52777a65115caaa7b419ba43d03106f4b914.tar.bz2
mate-indicator-applet-c59b52777a65115caaa7b419ba43d03106f4b914.tar.xz
GTK+3: allow indicators to receive mouse scroll event
will be handy for changing volume in indicator-sound with mouse scroll
Diffstat (limited to 'src/applet-main.c')
-rw-r--r--src/applet-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/applet-main.c b/src/applet-main.c
index 385c21a..3c0cc60 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -291,6 +291,11 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, GtkWidget * men
gtk_hbox_new(FALSE, 3) : gtk_vbox_new(FALSE, 3);
#endif
+#if GTK_CHECK_VERSION (3, 0, 0)
+ /* Allows indicators to receive mouse scroll event in GTK+3 */
+ gtk_widget_add_events(GTK_WIDGET(menuitem), GDK_SCROLL_MASK);
+#endif
+
g_object_set_data (G_OBJECT (menuitem), "indicator", io);
g_object_set_data (G_OBJECT (menuitem), "box", box);