aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-user-creatable-items-handler.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-07-14 02:16:54 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-07-14 02:16:54 +0800
commit158c89195b69a7f5fed3d81c0d90e8163a587d67 (patch)
treefd0bdc9c94bf9453410576e172a4eb71e82f0a88 /shell/e-user-creatable-items-handler.c
parent41615b69dfae910e83fa1d00995953dc8ac4c9af (diff)
downloadgsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.tar
gsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.tar.gz
gsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.tar.bz2
gsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.tar.lz
gsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.tar.xz
gsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.tar.zst
gsoc2013-evolution-158c89195b69a7f5fed3d81c0d90e8163a587d67.zip
Fix for bug #345331
svn path=/trunk/; revision=32302
Diffstat (limited to 'shell/e-user-creatable-items-handler.c')
-rw-r--r--shell/e-user-creatable-items-handler.c11
1 files changed, 5 insertions, 6 deletions
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 "));
}
}