...and don't forget to initalize priv->columns to 1.

Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
	priv->columns to 1.
This commit is contained in:
Matthias Clasen 2004-02-17 22:25:13 +00:00 committed by Matthias Clasen
parent c1d9c02b09
commit 9397b0dc0a
6 changed files with 30 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
priv->columns to 1.
Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep

View File

@ -1,3 +1,8 @@
Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
priv->columns to 1.
Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep

View File

@ -1,3 +1,8 @@
Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
priv->columns to 1.
Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep

View File

@ -1,3 +1,8 @@
Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
priv->columns to 1.
Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep

View File

@ -1,3 +1,8 @@
Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
priv->columns to 1.
Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep

View File

@ -710,6 +710,8 @@ gtk_menu_window_size_request (GtkWidget *window,
static void
gtk_menu_init (GtkMenu *menu)
{
GtkMenuPrivate *priv = gtk_menu_get_private (menu);
menu->parent_menu_item = NULL;
menu->old_active_menu_item = NULL;
menu->accel_group = NULL;
@ -755,6 +757,8 @@ gtk_menu_init (GtkMenu *menu)
menu->lower_arrow_prelight = FALSE;
MENU_NEEDS_RESIZE (menu) = TRUE;
priv->columns = 1;
}
static void
@ -949,7 +953,7 @@ gtk_menu_do_remove (GtkMenuShell *menu_shell,
single_column = priv->columns == 1;
/* Recalculate these, assuming the child has already been removed.
* Note that an empty menu is assumed to have one column.
* Note that an empty menu is assumed to have one column
*/
priv->rows = 0;
priv->columns = 1;