summaryrefslogtreecommitdiff
path: root/gtk/gtkmenushell.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-15 02:03:59 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-15 02:03:59 +0000
commit3895bea4df873c114689f8de97b5527a75657aaf (patch)
treed75941dfea3bec36383492d8f09c4f1312bfc648 /gtk/gtkmenushell.h
parentf2e252a2c26c589a3fdd13bf0606a25f7ae076eb (diff)
downloadgtk+-3895bea4df873c114689f8de97b5527a75657aaf.tar.gz
#136672, reported by Christian Persch; fixes based on a patch by Soeren
Sun Mar 14 19:26:48 2004 Owen Taylor <otaylor@redhat.com> #136672, reported by Christian Persch; fixes based on a patch by Soeren Sandmann. * gtk/gtkmenu.c: Change the handling of mixed gridded and non-gridded menu items; the old method was causing major performance problems even with the "avoid relayout on destruction" hack put in recently. Now we first lay out the gridded items and then put the non-gridded items into empty rows / after the gridded items. Layout is done in a central menu_shell_ensure_layout(). Also avoid emitting property notifications when we initially insert or attach items. * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the unused menu_shell->menu_flag, and document it as unused in the header. * tests/testactions.c: Add a test of creating/removing lots of items. * test/testgtk.c: Add some more cruft to the menu test.
Diffstat (limited to 'gtk/gtkmenushell.h')
-rw-r--r--gtk/gtkmenushell.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmenushell.h b/gtk/gtkmenushell.h
index 512ba5d3eb..791cf57016 100644
--- a/gtk/gtkmenushell.h
+++ b/gtk/gtkmenushell.h
@@ -63,7 +63,7 @@ struct _GtkMenuShell
guint have_grab : 1;
guint have_xgrab : 1;
guint ignore_leave : 1; /* unused */
- guint menu_flag : 1;
+ guint menu_flag : 1; /* unused */
guint ignore_enter : 1;
};