From 158c89195b69a7f5fed3d81c0d90e8163a587d67 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 13 Jul 2006 18:16:54 +0000 Subject: Fix for bug #345331 svn path=/trunk/; revision=32302 --- shell/e-user-creatable-items-handler.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'shell/e-user-creatable-items-handler.c') diff --git a/shell/e-user-creatable-items-handler.c b/shell/e-user-creatable-items-handler.c index bbd22e8a61..c3f888235f 100644 --- a/shell/e-user-creatable-items-handler.c +++ b/shell/e-user-creatable-items-handler.c @@ -673,12 +673,7 @@ gtk_separator_func (EUserCreatableItemsHandler *handler, gpointer menu, int nth) static void set_combo_button_style (EComboButton *button, const gchar *style, GdkPixbuf *icon) { - if(!g_ascii_strcasecmp (style,"both")){ - e_combo_button_pack_vbox (button); - e_combo_button_set_icon (button, icon); - e_combo_button_set_label (button, _(" New ")); - } - else if(!g_ascii_strcasecmp (style,"both-horiz")){ + if(!g_ascii_strcasecmp (style,"both-horiz")){ e_combo_button_pack_hbox (button); e_combo_button_set_label (button, _("New")); e_combo_button_set_icon (button, icon); @@ -692,6 +687,10 @@ set_combo_button_style (EComboButton *button, const gchar *style, GdkPixbuf *ico e_combo_button_pack_hbox (button); e_combo_button_set_label (button, _("New")); e_combo_button_set_icon (button, NULL); + } else { /* Default to both */ + e_combo_button_pack_vbox (button); + e_combo_button_set_icon (button, icon); + e_combo_button_set_label (button, _(" New ")); } } -- cgit