From 983cd2f7cc9e7d7f54a07d6b286e24e0a8dc37d5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 29 Sep 2015 21:19:06 -0400 Subject: [PATCH] gdkgears: Use a headerbar This is a testcase for https://bugzilla.gnome.org/show_bug.cgi?id=755675 --- tests/gdkgears.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gdkgears.c b/tests/gdkgears.c index f6d5bc0c0b..bfa1a3646e 100644 --- a/tests/gdkgears.c +++ b/tests/gdkgears.c @@ -115,7 +115,7 @@ main (int argc, char *argv[]) gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_title (GTK_WINDOW (window), "GdkGears"); + gtk_window_set_titlebar (GTK_WINDOW (window), g_object_new (GTK_TYPE_HEADER_BAR, "visible", TRUE, "title", "GdkGears", NULL)); gtk_window_set_default_size (GTK_WINDOW (window), 640, 640); gtk_container_set_border_width (GTK_CONTAINER (window), 12); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);