diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-09 13:20:05 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-09 13:20:05 +0800 |
commit | 3c36db8abbc66ef4306c98dac6e9592bca036bd4 (patch) | |
tree | 60da58690fe6c085e0c39c2b6cfd8abdff6c0fb4 /e-util/e-popup-menu.c | |
parent | fbf55cd7f31b6a413ebe785579b840a0091d390c (diff) | |
download | gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.tar gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.tar.gz gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.tar.bz2 gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.tar.lz gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.tar.xz gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.tar.zst gsoc2013-evolution-3c36db8abbc66ef4306c98dac6e9592bca036bd4.zip |
Ooops.
2000-08-09 Christopher James Lahey <clahey@helixcode.com>
* e-popup-menu.c: Ooops.
svn path=/trunk/; revision=4630
Diffstat (limited to 'e-util/e-popup-menu.c')
-rw-r--r-- | e-util/e-popup-menu.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/e-util/e-popup-menu.c b/e-util/e-popup-menu.c index 619f40a22d..e7423e40f0 100644 --- a/e-util/e-popup-menu.c +++ b/e-util/e-popup-menu.c @@ -61,8 +61,8 @@ e_popup_menu_create (EPopupMenu *menu_list, int disable_mask, int hide_mask, voi { GtkMenu *menu = GTK_MENU (gtk_menu_new ()); int i; - gboolean last_item_separator = TRUE; - gint last_non_separator = -1; + gboolean last_item_seperator = TRUE; + gint last_non_seperator = -1; for (i = 0; menu_list[i].name; i++) { if (strcmp("", menu_list[i].name) && !(menu_list [i].disable_mask & hide_mask)) { @@ -70,13 +70,13 @@ e_popup_menu_create (EPopupMenu *menu_list, int disable_mask, int hide_mask, voi } } - for (i = 0; i < last_non_separator; i++) { + for (i = 0; i < last_non_seperator; i++) { GtkWidget *item; - gboolean separator; + gboolean seperator; - separator = !strcmp("", menu_list[i].name); + seperator = !strcmp("", menu_list[i].name); - if ((!(separator && last_separator)) && !(menu_list [i].disable_mask & hide_mask)) { + if ((!(seperator && last_item_seperator)) && !(menu_list [i].disable_mask & hide_mask)) { item = make_item (menu, menu_list [i].name, menu_list [i].pixname); @@ -93,6 +93,7 @@ e_popup_menu_create (EPopupMenu *menu_list, int disable_mask, int hide_mask, voi gtk_widget_show (item); gtk_menu_append (menu, item); } + last_item_seperator = seperator; } return menu; |