[gnome-robots/arnaudb/wip/gtk4: 31/45] Adapt to HeaderBar API, part 2.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots/arnaudb/wip/gtk4: 31/45] Adapt to HeaderBar API, part 2.
- Date: Tue, 15 Sep 2020 14:46:49 +0000 (UTC)
commit f6fa68d0199f72f20c0deae7eb9792f68f2c6b8d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon May 25 19:34:24 2020 +0200
Adapt to HeaderBar API, part 2.
src/gnome-robots.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index f7ee1f1..c190e8f 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -357,7 +357,6 @@ activate (GtkApplication *app, gpointer user_data)
}
headerbar = gtk_header_bar_new ();
- gtk_header_bar_set_title (GTK_HEADER_BAR (headerbar), _("Robots"));
gtk_header_bar_set_show_title_buttons (GTK_HEADER_BAR (headerbar), TRUE);
appmenu = gtk_application_get_menu_by_id (app, "primary-menu");
@@ -367,6 +366,7 @@ activate (GtkApplication *app, gpointer user_data)
gtk_header_bar_pack_end (GTK_HEADER_BAR (headerbar), button);
window = gtk_application_window_new (app);
+ gtk_window_set_title (GTK_WINDOW (window), _("Robots"));
gtk_window_set_titlebar (GTK_WINDOW (window), headerbar);
g_signal_connect (GTK_WINDOW (window), "configure-event", G_CALLBACK (window_configure_event_cb), NULL);
g_signal_connect (GTK_WINDOW (window), "window-state-event", G_CALLBACK (window_state_event_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]