[Xfce4-commits] [xfce/xfce4-panel] 01/01: tasklist: Add	'group-button' styleclass
    noreply at xfce.org 
    noreply at xfce.org
       
    Mon Dec  3 23:41:21 CET 2018
    
    
  
This is an automated email from the git hooks/post-receive script.
o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.
commit 971188bec9a1336db42492ce32f9a4ad7ecd7f0e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Dec 3 23:39:20 2018 +0100
    tasklist: Add 'group-button' styleclass
    
    This allows themes to visually distinguish between normal single-window
    buttons and group buttons (which is useful, because the behaviors
    differ:
     - single-window buttons focus the corresponding window on left-click
     - group buttons open a menu with all grouped windows on left-click
---
 plugins/tasklist/tasklist-widget.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 8eaa358..496ffb5 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -3947,6 +3947,7 @@ xfce_tasklist_group_button_new (WnckClassGroup *class_group,
   child->type = CHILD_TYPE_GROUP;
   child->class_group = class_group;
 
+  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (child->button)), "group-button");
   /* note that the same signals should be in the proxy menu item too */
   g_signal_connect (G_OBJECT (child->button), "button-press-event",
       G_CALLBACK (xfce_tasklist_group_button_button_press_event), child);
-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
    
    
More information about the Xfce4-commits
mailing list