[gnome-klotski/arnaudb/wip/gtk4: 54/62] Adapt to HeaderBar API.




commit c243ed16aceaff459315babfe799ed89c4d0c022
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu May 7 01:35:51 2020 +0200

    Adapt to HeaderBar API.

 src/klotski-window.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index dbf0667..5b6cfb9 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -862,7 +862,7 @@ private class KlotskiWindow : ApplicationWindow
 
     private void start_puzzle ()
     {
-        headerbar.set_title (_(levels [current_level].name));
+        set_title (_(levels [current_level].name));
         if (puzzle_init_done)
             SignalHandler.disconnect_by_func (puzzle, null, this);
         puzzle = new Puzzle (levels [current_level].width, levels [current_level].height, levels 
[current_level].data);
@@ -890,7 +890,7 @@ private class KlotskiWindow : ApplicationWindow
         if (puzzle.game_over ())
         {
             /* Translators: headerbar title, when the puzzle is solved */
-            headerbar.set_title (_("Level completed."));    // FIXME remove the dot
+            set_title (_("Level completed."));    // FIXME remove the dot
             game_score ();
         }
     }


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