diff options
author | Andrzej <ndrwrdck@gmail.com> | 2013-04-22 23:58:10 +0100 |
---|---|---|
committer | Andrzej <ndrwrdck@gmail.com> | 2013-04-22 23:58:10 +0100 |
commit | 37c2b04a462c483bc1a845d94a1e7067079f01e2 (patch) | |
tree | 0d6597c61e4d935509736dbbd62abd4e6791e708 | |
parent | 99ac8ac65f2e008cd8d01e8b9a796e76e4352ef2 (diff) |
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?
-rw-r--r-- | 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 ded78ea1..80730400 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; |