Parcourir la source

Allow mssh window to be smaller than 1024x768

Héctor García il y a 10 ans
Parent
commit
fd26cd0177
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  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();