[gnome-calculator] Set default width for basic and keyboard mode
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Set default width for basic and keyboard mode
- Date: Sat, 20 Nov 2021 13:18:32 +0000 (UTC)
commit ac4603ad48c93ca6fc0c62ec2551d204def15a0c
Author: Robert Roth <robert roth off gmail com>
Date: Sat Nov 20 15:18:21 2021 +0200
Set default width for basic and keyboard mode
src/math-window.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/math-window.vala b/src/math-window.vala
index c9eb0d48..e01adea0 100644
--- a/src/math-window.vala
+++ b/src/math-window.vala
@@ -92,7 +92,7 @@ public class MathWindow : Adw.ApplicationWindow
default:
case ButtonMode.BASIC:
menu_button.label = _("Basic");
- this.default_width = -1;
+ this.default_width = 360;
action.set_state (new Variant.string ("basic"));
break;
@@ -116,6 +116,7 @@ public class MathWindow : Adw.ApplicationWindow
case ButtonMode.KEYBOARD:
menu_button.label = _("Keyboard");
+ this.default_width = 680;
action.set_state (new Variant.string ("keyboard"));
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]