diff options
author | Andrzej <ndrwrdck@gmail.com> | 2013-04-22 23:58:10 +0100 |
---|---|---|
committer | Andrzej <ndrwrdck@gmail.com> | 2013-08-25 22:04:00 +0100 |
commit | 70736810202ecebc25bc5622e8022c1f3612e997 (patch) | |
tree | cb88043878c537694620744f16549c84babc7d68 | |
parent | e19efc05e6c6388b6f2f869aec452f55a03cc74c (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; |