mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Fix compilation error
Substitute gtk_menu_bar_append() deprecated function by gtk_menu_shell_append() and cast to correct type
This commit is contained in:
parent
a27da3239e
commit
6389f13ea5
@ -1683,7 +1683,7 @@ _create_window (void)
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), menubar, FALSE, TRUE, 0);
|
||||
gtk_widget_show (menubar);
|
||||
menutop = gtk_menu_item_new_with_label("Menu");
|
||||
gtk_menu_bar_append(GTK_MENU_BAR(menubar), menutop);
|
||||
gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menutop);
|
||||
gtk_widget_show (menutop);
|
||||
menu = gtk_menu_new();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menutop), menu);
|
||||
@ -1977,7 +1977,7 @@ _get_name_value(GroupInfo *group, const gchar *label,
|
||||
name_value->label = GTK_LABEL(gtk_label_new(label));
|
||||
name_value->string = gtk_label_new (NULL);
|
||||
name_value->boolean = gtk_check_button_new ();
|
||||
gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (name_value->text), 1000);
|
||||
gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (GTK_ENTRY (name_value->text)), 1000);
|
||||
name_value->button = GTK_BUTTON(gtk_button_new ());
|
||||
|
||||
gtk_box_pack_end(GTK_BOX(name_value->column1),
|
||||
|
Loading…
Reference in New Issue
Block a user