Don't update a whole panel background after some plugin was resized.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Mon, 1 Dec 2014 00:54:58 +0000 (02:54 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Mon, 1 Dec 2014 00:54:58 +0000 (02:54 +0200)
That isn't required since we don't set plugins backgrounds anymore.
This should significally improve reaction on plugins changes.

ChangeLog
TODO
src/plugin.c

index f610510..260a8a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -88,6 +88,8 @@
 * Simplified plugins background setting - they should never use any own
     background but either use one from panel or from theme (depending on
     panel configuration). This should improve performance.
+* Don't update a whole panel background anymore after some plugin was
+    resized, only update the plugin itself to improve performance.
 
 0.7.2
 -------------------------------------------------------------------------
diff --git a/TODO b/TODO
index 95dd37f..b1383d0 100644 (file)
--- a/TODO
+++ b/TODO
@@ -12,3 +12,4 @@
 * convert Task into GtkWidget and use it to emit signals for menus and buttons
 * make click-wait-release popdown popups similarly to as GtkMenuShell does
 * make lxpanel multiscreen-aware
+* improve startup time (move every non-instant operation into idle callback)
index 035259e..f334a80 100644 (file)
@@ -488,7 +488,8 @@ static void on_size_allocate(GtkWidget *widget, GdkRectangle *allocation, LXPane
         return; /* not changed */
     *alloc = *allocation;
     /* g_debug("size-allocate on %s", PLUGIN_CLASS(widget)->name); */
-    _panel_queue_update_background(p);
+    plugin_widget_set_background(widget, p);
+//    _panel_queue_update_background(p);
 //    _queue_panel_calculate_size(p);
 }