[Xfce4-commits] [xfce/xfce4-power-manager] 16/63: Fix scroll-event on the plugin for brightness changes
noreply at xfce.org
noreply at xfce.org
Sun Mar 22 13:02:11 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit 2eeb6ba5f8f9d2de31664364b5bb5f8e9c43d064
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Fri Mar 6 13:35:40 2015 +0100
Fix scroll-event on the plugin for brightness changes
---
panel-plugins/power-manager-plugin/power-manager-button.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/panel-plugins/power-manager-plugin/power-manager-button.c b/panel-plugins/power-manager-plugin/power-manager-button.c
index a2c8947..aad81f3 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -866,6 +866,8 @@ power_manager_button_init (PowerManagerButton *button)
-1, NULL);
gtk_style_context_add_provider (GTK_STYLE_CONTEXT (gtk_widget_get_style_context (GTK_WIDGET (button))),
GTK_STYLE_PROVIDER (css_provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ /* Intercept scroll events */
+ gtk_widget_add_events (GTK_WIDGET (button), GDK_SCROLL_MASK);
g_signal_connect (G_OBJECT (button), "style_updated", G_CALLBACK (power_manager_button_set_icon), button);
g_signal_connect (button->priv->upower, "device-added", G_CALLBACK (device_added_cb), button);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list