[gnome-klotski/arnaudb/wip/gtk4: 35/42] Adapt to HeaderBar API.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski/arnaudb/wip/gtk4: 35/42] Adapt to HeaderBar API.
- Date: Mon, 1 Jun 2020 21:23:53 +0000 (UTC)
commit ec9b4fd91dc84cfc55aa699d71cc35d5373c7b70
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 f2511aa..c675d87 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -871,7 +871,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);
@@ -899,7 +899,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]