[Xfce4-commits] <xfce4-taskbar-plugin:master> Bugfix: drag_button setting is now getting applied immediately
Valentin Dudouyt
noreply at xfce.org
Sun Nov 18 03:50:01 CET 2012
Updating branch refs/heads/master
to c5dbd50e209fe008c88eb7f7de0717c06f04f8ca (commit)
from 06a8b151c797b19c2cb94efb4327d3fa562d0ed9 (commit)
commit c5dbd50e209fe008c88eb7f7de0717c06f04f8ca
Author: Valentin Dudouyt <valentin.dudouyt at gmail.com>
Date: Sun Nov 18 09:49:17 2012 +0700
Bugfix: drag_button setting is now getting applied immediately
taskbar-widget.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/taskbar-widget.c b/taskbar-widget.c
index f5b6ce0..20a7ddc 100644
--- a/taskbar-widget.c
+++ b/taskbar-widget.c
@@ -464,11 +464,15 @@ static void xfce_taskbar_set_property (GObject *object, guint prop_id, const GVa
case PROP_DRAG_BUTTON:
taskbar->drag_button = g_value_get_int (value);
g_debug("drag_button=%d", taskbar->drag_button);
+ for(gi=taskbar->wgroups; gi!=NULL; gi=gi->next)
+ {
+ XfceTaskBarGroup *group =gi->data ;
+ gtk_drag_source_set (group->button, taskbar->drag_button ? GDK_BUTTON2_MASK : GDK_BUTTON1_MASK, source_targets, G_N_ELEMENTS (source_targets), GDK_ACTION_MOVE);
+ }
break;
case PROP_FLAT_BUTTONS:
taskbar->flat_buttons = g_value_get_boolean (value);
- // Applying the changes immediately
for(gi=taskbar->wgroups; gi!=NULL; gi=gi->next)
{
XfceTaskBarGroup *group =gi->data ;
More information about the Xfce4-commits
mailing list