summaryrefslogtreecommitdiff
path: root/examples/application6/exampleapp.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-10 21:26:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 08:15:56 -0400
commitd2430c70bd2166f086214880043258cf19bb3e8f (patch)
treeefc20eec503846fa269780f4df2e4f1bf5932f22 /examples/application6/exampleapp.c
parent4de4957aa34b39b313cceff760d390003795b325 (diff)
downloadgtk+-d2430c70bd2166f086214880043258cf19bb3e8f.tar.gz
Refresh the tutorial examples
Redo this series of examples from 2013, and adapt it to modern way of doing things. The biggest differences are that we use a headerbar right from the start, and don't mention the app menu. Fixes: #2730
Diffstat (limited to 'examples/application6/exampleapp.c')
-rw-r--r--examples/application6/exampleapp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/application6/exampleapp.c b/examples/application6/exampleapp.c
index 64a3ceb100..8ac0ebd529 100644
--- a/examples/application6/exampleapp.c
+++ b/examples/application6/exampleapp.c
@@ -46,8 +46,6 @@ static GActionEntry app_entries[] =
static void
example_app_startup (GApplication *app)
{
- GtkBuilder *builder;
- GMenuModel *app_menu;
const gchar *quit_accels[2] = { "<Ctrl>Q", NULL };
G_APPLICATION_CLASS (example_app_parent_class)->startup (app);
@@ -58,11 +56,6 @@ example_app_startup (GApplication *app)
gtk_application_set_accels_for_action (GTK_APPLICATION (app),
"app.quit",
quit_accels);
-
- builder = gtk_builder_new_from_resource ("/org/gtk/exampleapp/app-menu.ui");
- app_menu = G_MENU_MODEL (gtk_builder_get_object (builder, "appmenu"));
- gtk_application_set_app_menu (GTK_APPLICATION (app), app_menu);
- g_object_unref (builder);
}
static void