[gnome-nibbles/arnaudb/wip/gtk4: 26/62] Adapt to GtkHeaderBar API.



commit 821bd9b9b91c9ad5f43b4602757c6f8bcd7d9d13
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat May 30 18:08:36 2020 +0200

    Adapt to GtkHeaderBar API.

 src/nibbles-window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index 4c222dc..5705130 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -490,7 +490,7 @@ private class NibblesWindow : ApplicationWindow
         if (game.is_running)
             game.stop ();
 
-        headerbar.set_title (Nibbles.PROGRAM_NAME);
+        set_title (Nibbles.PROGRAM_NAME);
 
         new_game_action.set_enabled (false);
         pause_action.set_enabled (false);
@@ -587,7 +587,7 @@ private class NibblesWindow : ApplicationWindow
         back_action.set_enabled (false);
 
         /* Translators: title of the headerbar, while a game is running; the %d is replaced by the level 
number */
-        headerbar.set_title (_("Level %d").printf (game.current_level));        // TODO unduplicate, 1/2
+        set_title (_("Level %d").printf (game.current_level));        // TODO unduplicate, 1/2
         main_stack.set_visible_child_name ("game_box");
 
         main_stack.set_transition_type (StackTransitionType.SLIDE_UP);
@@ -802,7 +802,7 @@ private class NibblesWindow : ApplicationWindow
             button.destroy ();
 
             /* Translators: title of the headerbar, while a game is running; the %d is replaced by the level 
number */
-            headerbar.set_title (_("Level %d").printf (game.current_level));    // TODO unduplicate, 2/2
+            set_title (_("Level %d").printf (game.current_level));    // TODO unduplicate, 2/2
 
             view.show ();
 


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