[gtk+] gdkgears: Use a headerbar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkgears: Use a headerbar
- Date: Wed, 30 Sep 2015 01:20:49 +0000 (UTC)
commit 983cd2f7cc9e7d7f54a07d6b286e24e0a8dc37d5
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 29 21:19:06 2015 -0400
gdkgears: Use a headerbar
This is a testcase for
https://bugzilla.gnome.org/show_bug.cgi?id=755675
tests/gdkgears.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/gdkgears.c b/tests/gdkgears.c
index f6d5bc0..bfa1a36 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]