Browse Source

Allow mssh window to be smaller than 1024x768

Héctor García 10 years ago
parent
commit
fd26cd0177
2 changed files with 4 additions and 1 deletions
  1. 2 0
      ChangeLog
  2. 2 1
      src/mssh-window.c

+ 2 - 0
ChangeLog

@@ -6,6 +6,8 @@
 
     Copy Debian's mssh man page to upstream and added Karl Goetz <[email protected]> patch
 
+    Allow window to be smaller than 1024x768. Patch from Lorenzo Masini <[email protected]>
+
 2014-01-15  Héctor García  <[email protected]>
 
     Bumped version to 1.3 gtk2 deprecated symbols free

+ 2 - 1
src/mssh-window.c

@@ -434,7 +434,8 @@ static void mssh_window_init(MSSHWindow* window)
 
     gtk_container_add(GTK_CONTAINER(window), vbox);
 
-    gtk_widget_set_size_request(GTK_WIDGET(window), 1024, 768);
+    gtk_widget_set_size_request(GTK_WIDGET(window), 0, 0);
+    gtk_window_set_default_size(GTK_WINDOW(window), 1024, 768);
     gtk_window_set_title(GTK_WINDOW(window), PACKAGE_NAME);
 
     client = gconf_client_get_default();