[Xfce4-commits] [xfce/xfce4-panel] 02/02: tasklist: Fix urgency blinking for group buttons (Bug #6904)

noreply at xfce.org noreply at xfce.org
Mon Dec 3 23:57:32 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 632d5f1bc7cd564be3418bf7549e2f749e4f7db1
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Dec 3 23:56:47 2018 +0100

    tasklist: Fix urgency blinking for group buttons (Bug #6904)
---
 plugins/tasklist/tasklist-widget.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index ab2ed00..81280fd 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2734,7 +2734,19 @@ xfce_tasklist_button_state_changed (WnckWindow        *window,
               gtk_widget_show (child->button);
             }
 
-          xfce_arrow_button_set_blinking (XFCE_ARROW_BUTTON (child->button), blink);
+
+          /* make sure the group button can blink too */
+          if (child->type == CHILD_TYPE_GROUP_MENU)
+            {
+              /* find the child for the group */
+              g_hash_table_lookup_extended (child->tasklist->class_groups,
+                                            child->class_group,
+                                            NULL, (gpointer *) &group_child);
+              xfce_arrow_button_set_blinking (XFCE_ARROW_BUTTON (group_child->button), blink);
+            }
+          /* otherwise just let the window button blink */
+          else
+            xfce_arrow_button_set_blinking (XFCE_ARROW_BUTTON (child->button), blink);
 
           if (child->tasklist->all_blinking
               && !xfce_tasklist_button_visible (child, active_ws))

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


More information about the Xfce4-commits mailing list