[Xfce4-commits] <xfce4-taskbar-plugin:master> Fixed some minor bugs.

Gearoid Murphy noreply at xfce.org
Mon Oct 15 15:50:01 CEST 2012


Updating branch refs/heads/master
         to 4197035e4619a2586deec6f6c56f51444172c8b7 (commit)
       from 82300bf7907d846be579383cc9855daf4ddfae70 (commit)

commit 4197035e4619a2586deec6f6c56f51444172c8b7
Author: Gearoid Murphy <gearoid.murphy at hp.com>
Date:   Mon Oct 15 14:47:29 2012 +0100

    Fixed some minor bugs.

 taskbar-widget.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/taskbar-widget.c b/taskbar-widget.c
index e4d671d..c4d8876 100644
--- a/taskbar-widget.c
+++ b/taskbar-widget.c
@@ -978,14 +978,18 @@ static void xfce_taskbar_active_window_changed (WnckScreen *screen, WnckWindow *
         {
             continue ;
         }
-        
+        gboolean iconActive=FALSE ;
         for(wi = group->wnodes; wi != NULL; wi = wi->next)
         {
             wnode = wi->data ;
-            gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (group->button), (gboolean)(wnode->window == active_window));
+            if(wnode->window == active_window)
+            {
+                iconActive = TRUE ;
+                break ;
+            }
         }
+        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (group->button), iconActive);
     }
-    
     // release the lock
     xfce_taskbar_unlock (taskbar);
 }
@@ -2093,7 +2097,11 @@ static void xfce_taskbar_group_button_launch_pinned (XfceTaskBarGroup *group)
     }
     
     //
-    xfce_arrow_button_set_blinking (XFCE_ARROW_BUTTON (group->button), TRUE);
+    //We should only start blinking if it's the first window
+    if(g_slist_length(group->wnodes) == 0)
+    {
+        xfce_arrow_button_set_blinking (XFCE_ARROW_BUTTON (group->button), TRUE);
+    }
 }
 
 static void xfce_taskbar_group_button_toggle_pinned (XfceTaskBarGroup *group)


More information about the Xfce4-commits mailing list