summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-06-09 12:02:02 +0300
committermonsta <[email protected]>2016-06-20 16:11:25 +0300
commit59918b1a61c39b8d73a78bc7aac2d996383df1cb (patch)
tree8aed2c4a8fdd973f729fd51ee4f7da8b89621c03 /src
parent1522904e12470f9e632c32c2b44555e41e11d15a (diff)
downloadmate-indicator-applet-59918b1a61c39b8d73a78bc7aac2d996383df1cb.tar.bz2
mate-indicator-applet-59918b1a61c39b8d73a78bc7aac2d996383df1cb.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')
-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);