summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/application.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-03 04:52:15 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-07 14:08:08 +0100
commit68dbb3f31a006cd0e1d23341ecb8236224da5ffb (patch)
treead031625bbf6049c905657709b6ef60013b171ea /demos/gtk-demo/application.c
parent8a60f5dc78b7aac9d3773a4229ca2565fe8214f8 (diff)
downloadgtk+-68dbb3f31a006cd0e1d23341ecb8236224da5ffb.tar.gz
gtk-demo: Get rid of toolbars
Diffstat (limited to 'demos/gtk-demo/application.c')
-rw-r--r--demos/gtk-demo/application.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c
index 92034b5e43..783966dfd8 100644
--- a/demos/gtk-demo/application.c
+++ b/demos/gtk-demo/application.c
@@ -14,7 +14,7 @@ typedef struct {
GtkWidget *message;
GtkWidget *infobar;
GtkWidget *status;
- GtkWidget *menutool;
+ GtkWidget *menubutton;
GMenuModel *toolmenu;
GtkTextBuffer *buffer;
@@ -428,8 +428,8 @@ demo_application_window_init (DemoApplicationWindow *window)
gtk_widget_init_template (GTK_WIDGET (window));
- popover = gtk_popover_menu_new_from_model (window->menutool, window->toolmenu);
- gtk_menu_tool_button_set_popover (GTK_MENU_TOOL_BUTTON (window->menutool), popover);
+ popover = gtk_popover_menu_new_from_model (window->menubutton, window->toolmenu);
+ gtk_menu_button_set_popover (GTK_MENU_BUTTON (window->menubutton), popover);
g_action_map_add_action_entries (G_ACTION_MAP (window),
win_entries, G_N_ELEMENTS (win_entries),
@@ -528,7 +528,7 @@ demo_application_window_class_init (DemoApplicationWindowClass *class)
gtk_widget_class_bind_template_child (widget_class, DemoApplicationWindow, infobar);
gtk_widget_class_bind_template_child (widget_class, DemoApplicationWindow, status);
gtk_widget_class_bind_template_child (widget_class, DemoApplicationWindow, buffer);
- gtk_widget_class_bind_template_child (widget_class, DemoApplicationWindow, menutool);
+ gtk_widget_class_bind_template_child (widget_class, DemoApplicationWindow, menubutton);
gtk_widget_class_bind_template_child (widget_class, DemoApplicationWindow, toolmenu);
gtk_widget_class_bind_template_callback (widget_class, clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, update_statusbar);