Fix icon size updating from configuration on 'launchtaskbar' plugin.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Tue, 18 Nov 2014 20:20:42 +0000 (22:20 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Tue, 18 Nov 2014 20:20:42 +0000 (22:20 +0200)
ChangeLog
plugins/launchtaskbar.c

index 7fef706..8a0a124 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -56,6 +56,7 @@
     was removed: size wasn't always renegotiated correctly.
 * Fixed range of space reservation in multi-monitor setup (reservation
     might cover another monitor).
+* Fixed icon size updating from configuration on 'launchtaskbar' plugin.
 
 0.7.2
 -------------------------------------------------------------------------
index c7143b4..a46249e 100644 (file)
@@ -1471,12 +1471,6 @@ static void launchtaskbar_panel_configuration_changed(LXPanel *panel, GtkWidget
         g_object_unref(icon);
     }
 
-    if (ltbp->tb_built)
-    {
-        taskbar_update_style(ltbp);
-        taskbar_make_menu(ltbp);
-    }
-
     /* If the icon size changed, refetch all the icons. */
     if (new_icon_size != ltbp->icon_size)
     {
@@ -1490,11 +1484,16 @@ static void launchtaskbar_panel_configuration_changed(LXPanel *panel, GtkWidget
                 g_object_unref(pixbuf);
             }
         }
+        ltbp->icon_size = new_icon_size;
     }
 
     /* Redraw all the labels.  Icon size or font color may have changed. */
     if (ltbp->tb_built)
+    {
+        taskbar_update_style(ltbp);
+        taskbar_make_menu(ltbp);
         taskbar_redraw(ltbp);
+    }
 }
 
 /* Set an urgency timer on a task. */