[gnome-chess] Promotion type selector dialog should fit mobile screens
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Promotion type selector dialog should fit mobile screens
- Date: Fri, 4 Dec 2020 22:55:00 +0000 (UTC)
commit 25cba4973af88c87d448785088068a505cf81aba
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Dec 4 16:51:34 2020 -0600
Promotion type selector dialog should fit mobile screens
src/gnome-chess.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index aa661f6..dcf62c3 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -355,6 +355,10 @@ Copyright © 2015–2016 Sahil Sareen""";
promotion_type_selector_dialog = (Dialog) promotion_type_selector_builder.get_object
("dialog_promotion_type_selector");
promotion_type_selector_dialog.transient_for = window;
+ var button_box = (ButtonBox) promotion_type_selector_builder.get_object ("button_box");
+ if (layout_mode == LayoutMode.NARROW)
+ button_box.orientation = Orientation.VERTICAL;
+
string color;
if (game.current_player.color == Color.WHITE)
color = "white";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]