* Fixes NB#95206, fixed the size of the priority icon in the editor&viewer
authorSergio Villar Senin <svillar@igalia.com>
Thu, 11 Dec 2008 09:49:59 +0000 (09:49 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 11 Dec 2008 09:49:59 +0000 (09:49 +0000)
pmo-trunk-r6762

src/hildon2/modest-msg-edit-window.c

index 3c3c5c2..08d0d72 100644 (file)
@@ -2711,20 +2711,24 @@ modest_msg_edit_window_set_priority_flags (ModestMsgEditWindow *window,
 
                switch (priority_flags) {
                case TNY_HEADER_FLAG_HIGH_PRIORITY:
-                       gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon), MODEST_HEADER_ICON_HIGH, GTK_ICON_SIZE_MENU);
+                       gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon),
+                                                     MODEST_HEADER_ICON_HIGH, 
+                                                     HILDON_ICON_SIZE_XSMALL);
                        gtk_widget_show (priv->priority_icon);
-                       priority_action = gtk_ui_manager_get_action (parent_priv->ui_manager, 
+                       priority_action = gtk_ui_manager_get_action (parent_priv->ui_manager,
                                                                     "/MenuBar/ToolsMenu/MessagePriorityMenu/MessagePriorityHighMenu");
                        break;
                case TNY_HEADER_FLAG_LOW_PRIORITY:
-                       gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon), "MODEST_HEADER_ICON_LOW", GTK_ICON_SIZE_MENU);
+                       gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon),
+                                                     MODEST_HEADER_ICON_LOW,
+                                                     HILDON_ICON_SIZE_XSMALL);
                        gtk_widget_show (priv->priority_icon);
-                       priority_action = gtk_ui_manager_get_action (parent_priv->ui_manager, 
+                       priority_action = gtk_ui_manager_get_action (parent_priv->ui_manager,
                                                                     "/MenuBar/ToolsMenu/MessagePriorityMenu/MessagePriorityLowMenu");
                        break;
                default:
                        gtk_widget_hide (priv->priority_icon);
-                       priority_action = gtk_ui_manager_get_action (parent_priv->ui_manager, 
+                       priority_action = gtk_ui_manager_get_action (parent_priv->ui_manager,
                                                                     "/MenuBar/ToolsMenu/MessagePriorityMenu/MessagePriorityNormalMenu");
                        break;
                }