[gnome-taquin] Remove a hack.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-taquin] Remove a hack.
- Date: Sat, 16 Feb 2019 17:51:30 +0000 (UTC)
commit 1d8f650781a5283f1aee8ad176dab3f860abd9c7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Feb 16 18:14:15 2019 +0100
Remove a hack.
data/game-headerbar.ui | 13 ++++++++++---
src/game-headerbar.vala | 2 --
2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/data/game-headerbar.ui b/data/game-headerbar.ui
index d4cafac..6902eb3 100644
--- a/data/game-headerbar.ui
+++ b/data/game-headerbar.ui
@@ -64,12 +64,19 @@
<property name="visible">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
- <!-- Translators: during a game, label of the New Game button (with a mnemonic that appears pressing
Alt) -->
- <property name="label" translatable="yes">_New Game</property>
- <property name="use-underline">True</property>
<property name="action-name">ui.new-game</property>
<!-- Translators: during a game, tooltip text of the New Game button -->
<property name="tooltip-text" translatable="yes">Start a new game</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <!-- Translators: during a game, label of the New Game button (with a mnemonic that appears
pressing Alt) -->
+ <property name="label" translatable="yes">_New Game</property>
+ <property name="ellipsize">end</property> <!-- can happen on small screen with big moves count
-->
+ <property name="mnemonic-widget">new_game_button</property>
+ <property name="use-underline">True</property>
+ </object>
+ </child>
</object>
</child>
</template>
diff --git a/src/game-headerbar.vala b/src/game-headerbar.vala
index 81b47f0..c510ad9 100644
--- a/src/game-headerbar.vala
+++ b/src/game-headerbar.vala
@@ -36,8 +36,6 @@ private class GameHeaderBar : BaseHeaderBar
construct
{
- ((Label) new_game_button.get_child ()).set_ellipsize (Pango.EllipsizeMode.END); // can happen on
small screen with big moves count
-
generate_moves_menu ();
init_modes ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]