[gnome-tetravex/arnaudb/wip/gtk4: 59/60] Adapt to HeaderBar API.




commit 9a5aa3f2c329fb7ffa1d201a05d1017a4a1fff87
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Aug 4 16:05:49 2020 +0200

    Adapt to HeaderBar API.

 src/gnome-tetravex.vala | 1 -
 src/score-dialog.vala   | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 455750e..5d4e1a6 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -321,7 +321,6 @@ private class Tetravex : Gtk.Application
         ((SimpleAction) lookup_action ("size")).set_state ("%d".printf (game_size));
 
         HeaderBar headerbar = new HeaderBar ();
-        headerbar.title = PROGRAM_NAME;
         headerbar.show_title_buttons = true;
         headerbar.show ();
         window.set_titlebar (headerbar);
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index de2714b..1a27c1d 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -52,7 +52,7 @@ private class ScoreDialog : Dialog
         size_combo.add_attribute (renderer, "text", 0);
         size_combo.width_request = 90;
         size_combo.show ();
-        ((HeaderBar) get_header_bar ()).set_custom_title (size_combo);
+        ((HeaderBar) get_header_bar ()).set_title_widget (size_combo);
 
         ScrolledWindow scroll = new ScrolledWindow ();
         scroll.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]