[gtk+/wip/gmenu] Only add separators when a section actually ends
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gmenu] Only add separators when a section actually ends
- Date: Fri, 2 Dec 2011 00:51:31 +0000 (UTC)
commit f5e95da75ef82d016bcfb605baa6f117b76dccd3
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 1 18:13:15 2011 -0500
Only add separators when a section actually ends
gtk/gtkapplicationwindow.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index ef308ed..87acbef 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -740,15 +740,16 @@ append_items_from_model (GtkMenuShell *menu,
append_items_from_model (menu, m, group, need_separator, label);
g_object_unref (m);
g_free (label);
- continue;
- }
- if (*need_separator)
- {
- w = gtk_separator_menu_item_new ();
- gtk_widget_show (w);
- gtk_menu_shell_append (menu, w);
- *need_separator = FALSE;
+ if (*need_separator)
+ {
+ w = gtk_separator_menu_item_new ();
+ gtk_widget_show (w);
+ gtk_menu_shell_append (menu, w);
+ *need_separator = FALSE;
+ }
+
+ continue;
}
menuitem = create_menuitem_from_model (model, i, group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]