diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-06-01 16:18:31 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-06-01 16:18:31 +0000 |
commit | 7d3c3cb6538397244edc3c4f8f86e2ba18af4716 (patch) | |
tree | 5479c8be285db969b7f1bc56f03fb207f7fb56d2 | |
parent | c137f4017f9d17528bf27dcd343628a5451b86bf (diff) | |
parent | 9c79b8b8778ce2600dc7f1c492a0da93e314e1b6 (diff) | |
download | gtk+-7d3c3cb6538397244edc3c4f8f86e2ba18af4716.tar.gz |
Merge branch 'fix_cast_warning_adding_notebook_page' into 'master'
invalid cast from 'GtkButton' to 'GtkBox'
See merge request GNOME/gtk!3615
-rw-r--r-- | gtk/gtknotebook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index cf2a7a9310..57b87f5f2e 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5652,8 +5652,8 @@ gtk_notebook_menu_item_recreate (GtkNotebook *notebook, GtkNotebookPage *page = list->data; GtkWidget *menu_item = gtk_widget_get_parent (page->menu_label); - gtk_box_remove (GTK_BOX (menu_item), page->menu_label); - gtk_widget_unparent (menu_item); + gtk_button_set_child (GTK_BUTTON (menu_item), NULL); + gtk_box_remove (GTK_BOX (notebook->menu_box), menu_item); gtk_notebook_menu_item_create (notebook, page); } |