[gnome-calculator] Make the calculator window resizable (bgo#756920)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Make the calculator window resizable (bgo#756920)
- Date: Tue, 23 Jan 2018 21:54:24 +0000 (UTC)
commit 6d1906c78e41de37e37e401bcbf5c398298aab61
Author: Robert Roth <robert roth off gmail com>
Date: Tue Jan 23 23:54:07 2018 +0200
Make the calculator window resizable (bgo#756920)
src/history-view.ui | 1 +
src/math-window.ui | 2 +-
src/math-window.vala | 2 --
3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/history-view.ui b/src/history-view.ui
index d2a87ad..18008b3 100644
--- a/src/history-view.ui
+++ b/src/history-view.ui
@@ -14,6 +14,7 @@
<object class="GtkViewport" id="viewport">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
<child>
<object class="GtkListBox" id="listbox">
<property name="visible">True</property>
diff --git a/src/math-window.ui b/src/math-window.ui
index b5f581a..5d6e97e 100644
--- a/src/math-window.ui
+++ b/src/math-window.ui
@@ -47,7 +47,7 @@
<property name="can_focus">False</property>
<property name="title" translatable="yes">Calculator</property>
<property name="role">gnome-calculator</property>
- <property name="resizable">False</property>
+ <property name="resizable">True</property>
<property name="show_menubar">False</property>
<child>
<object class="GtkGrid" id="grid">
diff --git a/src/math-window.vala b/src/math-window.vala
index 53f12a1..e8b4ac1 100644
--- a/src/math-window.vala
+++ b/src/math-window.vala
@@ -109,14 +109,12 @@ public class MathWindow : Gtk.ApplicationWindow
_buttons.show ();
remove_buttons = false;
converter.hide ();
- resizable = false;
}
else if (remove_buttons == false && _buttons.mode == ButtonMode.KEYBOARD)
{
_buttons.hide ();
remove_buttons = true;
converter.show ();
- resizable = true;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]