[Xfce4-commits] [panel-plugins/xfce4-mpc-plugin] 01/01: Fix changing volume using mousewheel on the plugin

noreply at xfce.org noreply at xfce.org
Wed Jun 29 21:22:55 CEST 2016


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository panel-plugins/xfce4-mpc-plugin.

commit fdcbe6451a7c9ca4a2368c3248c5624685b920aa
Author: Landry Breuil <landry at xfce.org>
Date:   Wed Jun 29 21:21:31 2016 +0200

    Fix changing volume using mousewheel on the plugin
    
    With Gtk3, you need to enable GDK_SCROLL_MASK to receive scroll events.
---
 panel-plugin/xfce4-mpc-plugin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index 35196d2..909ecbb 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -690,6 +690,7 @@ new_button_with_cbk(XfcePanelPlugin * plugin, GtkWidget *parent, gchar* icon, gp
    g_signal_connect (G_OBJECT(button), "button_press_event", G_CALLBACK(cb), data);
    g_signal_connect (G_OBJECT(button), "enter_notify_event", G_CALLBACK(enter_cb), data);
    g_signal_connect (G_OBJECT(button), "scroll_event", G_CALLBACK(scroll_cb), data);
+   gtk_widget_add_events(GTK_WIDGET(button), GDK_SCROLL_MASK);
    gtk_box_pack_start (GTK_BOX(parent), button, TRUE, TRUE, 0);
    return button;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list