summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/headerbar.c
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-05-01 04:04:08 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-05-01 19:48:05 +0500
commitc2e4e1af734fda7c65ea593a869af9c3561af98e (patch)
tree5f99adaf05b65891efd36f3a8a0ea38c255299ca /demos/gtk-demo/headerbar.c
parent35d50f88c89816b13d0184ecb13e38036da48bcd (diff)
downloadgtk+-c2e4e1af734fda7c65ea593a869af9c3561af98e.tar.gz
headerbar: Remove user-settable title
Use window title, or custom title widget if it's set. Remove 'title' property. Update demos and tests to set the title on the window instead of headerbar.
Diffstat (limited to 'demos/gtk-demo/headerbar.c')
-rw-r--r--demos/gtk-demo/headerbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/headerbar.c b/demos/gtk-demo/headerbar.c
index 3002504dba..070bb8fa70 100644
--- a/demos/gtk-demo/headerbar.c
+++ b/demos/gtk-demo/headerbar.c
@@ -24,13 +24,13 @@ do_headerbar (GtkWidget *do_widget)
{
window = gtk_window_new ();
gtk_window_set_display (GTK_WINDOW (window), gtk_widget_get_display (do_widget));
+ gtk_window_set_title (GTK_WINDOW (window), "Welcome to Facebook - Log in, sign up or learn more");
g_signal_connect (window, "destroy",
G_CALLBACK (gtk_widget_destroyed), &window);
gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
header = gtk_header_bar_new ();
gtk_header_bar_set_show_title_buttons (GTK_HEADER_BAR (header), TRUE);
- gtk_header_bar_set_title (GTK_HEADER_BAR (header), "Welcome to Facebook - Log in, sign up or learn more");
button = gtk_button_new ();
icon = g_themed_icon_new ("mail-send-receive-symbolic");