[gnome-software] updates: use a valid icon size for symbolic icons



commit 266bb95fc62a7551722744aea5ad884dffe86f91
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 9 18:37:38 2014 -0700

    updates: use a valid icon size for symbolic icons
    
    0 means GTK_ICON_SIZE_INVALID, which produces the wrong result on HiDpi
    displays.

 src/gs-shell-updates.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index e8a0f81..8dc0125 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -297,14 +297,14 @@ gs_shell_updates_update_ui_state (GsShellUpdates *shell_updates)
        case GS_SHELL_UPDATES_STATE_FAILED:
        case GS_SHELL_UPDATES_STATE_HAS_UPDATES:
                gtk_image_set_from_icon_name (GTK_IMAGE (widget),
-                                             "view-refresh-symbolic", 0);
+                                             "view-refresh-symbolic", GTK_ICON_SIZE_MENU);
                widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_refresh"));
                gtk_widget_set_visible (widget,
                                         gs_shell_get_mode (priv->shell) != GS_SHELL_MODE_UPDATED);
                break;
        case GS_SHELL_UPDATES_STATE_NO_UPDATES:
                gtk_image_set_from_icon_name (GTK_IMAGE (widget),
-                                             "view-refresh-symbolic", 0);
+                                             "view-refresh-symbolic", GTK_ICON_SIZE_MENU);
                widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_refresh"));
                gtk_widget_set_visible (widget,
                                        is_free_connection || priv->has_agreed_to_mobile_data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]