diff options
author | monsta <[email protected]> | 2016-06-09 12:02:02 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-06-09 12:02:02 +0300 |
commit | c59b52777a65115caaa7b419ba43d03106f4b914 (patch) | |
tree | f9879d4805fbfadee9b9586e1aaea6707238bf65 /src | |
parent | ba1ac7612a41c9a04650c39e0d42020a90e43473 (diff) | |
download | mate-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')
-rw-r--r-- | src/applet-main.c | 5 |
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); |