[Xfce4-commits] <xfce4-panel:nick/gtk3> PanelImage: do not reload fixed-size icons on style-updated.

Andrzej noreply at xfce.org
Tue Apr 23 01:00:01 CEST 2013


Updating branch refs/heads/nick/gtk3
         to 37c2b04a462c483bc1a845d94a1e7067079f01e2 (commit)
       from 99ac8ac65f2e008cd8d01e8b9a796e76e4352ef2 (commit)

commit 37c2b04a462c483bc1a845d94a1e7067079f01e2
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Mon Apr 22 23:58:10 2013 +0100

    PanelImage: do not reload fixed-size icons on style-updated.
    
    Style-updated triggered a lot of flickering in the applications menu
    on mouse hover events.
    
    Are there any use cases where reloading the icons is needed?

 libxfce4panel/xfce-panel-image.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libxfce4panel/xfce-panel-image.c b/libxfce4panel/xfce-panel-image.c
index ded78ea..8073040 100644
--- a/libxfce4panel/xfce-panel-image.c
+++ b/libxfce4panel/xfce-panel-image.c
@@ -622,8 +622,10 @@ xfce_panel_image_style_updated (GtkWidget *widget)
     }
 
   /* update the icon if we have an icon-name source */
+  /* and size is not set */
   if (priv->source != NULL
-      && !g_path_is_absolute (priv->source))
+      && !g_path_is_absolute (priv->source)
+      && priv->size <= 0)
     {
       /* unset the size to force an update */
       priv->width = priv->height = -1;


More information about the Xfce4-commits mailing list