mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +00:00
call gtk_widget_show() on all the menuitems that are being added to the
menubar
This commit is contained in:
parent
506ce38dc4
commit
d761548bd6
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user