aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--terminal.vala10
1 files changed, 6 insertions, 4 deletions
diff --git a/terminal.vala b/terminal.vala
index d66fc51..253dd7c 100644
--- a/terminal.vala
+++ b/terminal.vala
@@ -42,6 +42,9 @@ class Terminal : Gtk.Overlay {
string hyperlink_match;
uint? infobar_timeout_id;
double scroll_delta;
+
+ // This must be kept in sync with the padding size in terminal.css
+ int base_height = 2 * 2;
int base_width = -1;
public Terminal(string[] args, Gtk.Container parent, Gtk.Window window) {
@@ -110,10 +113,9 @@ class Terminal : Gtk.Overlay {
var geometry = Gdk.Geometry() {
base_width = base_width,
- // This must be kept in sync with the padding size in terminal.css
- base_height = 2 * 2,
- min_width = char_width,
- min_height = char_height,
+ base_height = base_height,
+ min_width = char_width * 28 + base_width,
+ min_height = char_height * 3 + base_height,
width_inc = char_width,
height_inc = char_height
};