From d761548bd6517d4047c8b7ed5257ab7c6165dcc2 Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Sun, 8 Nov 1998 22:39:14 +0000 Subject: [PATCH] call gtk_widget_show() on all the menuitems that are being added to the menubar --- widget/src/gtk/nsMenu.cpp | 3 +++ widget/src/gtk/nsMenuBar.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/widget/src/gtk/nsMenu.cpp b/widget/src/gtk/nsMenu.cpp index 2b7e8f522c81..73d66c6103e1 100644 --- a/widget/src/gtk/nsMenu.cpp +++ b/widget/src/gtk/nsMenu.cpp @@ -127,6 +127,7 @@ NS_METHOD nsMenu::AddItem(const nsString &aText) GtkWidget *widget; widget = gtk_menu_item_new_with_label (labelStr); + gtk_widget_show(widget); gtk_menu_shell_append (GTK_MENU_SHELL (mMenu), widget); delete[] labelStr; @@ -165,6 +166,7 @@ NS_METHOD nsMenu::AddMenu(nsIMenu * aMenu) parentmenu = GTK_WIDGET(voidData); item = gtk_menu_item_new_with_label (labelStr); + gtk_widget_show(item); gtk_menu_shell_append (GTK_MENU_SHELL (parentmenu), item); delete[] labelStr; @@ -186,6 +188,7 @@ NS_METHOD nsMenu::AddSeparator() { GtkWidget *widget; widget = gtk_menu_item_new (); + gtk_widget_show(widget); gtk_menu_shell_append (GTK_MENU_SHELL (mMenu), widget); return NS_OK; } diff --git a/widget/src/gtk/nsMenuBar.cpp b/widget/src/gtk/nsMenuBar.cpp index 7a82107cb9d3..711c264f23e5 100644 --- a/widget/src/gtk/nsMenuBar.cpp +++ b/widget/src/gtk/nsMenuBar.cpp @@ -97,6 +97,7 @@ NS_METHOD nsMenuBar::AddMenu(nsIMenu * aMenu) labelStr = Label.ToNewCString(); widget = gtk_menu_item_new_with_label (labelStr); + gtk_widget_show(widget); gtk_menu_bar_append (GTK_MENU_BAR (mMenu), widget); delete[] labelStr;