[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r1725: Make the main window smaller when the user has no tray/dock (in trunk: . src/gui)



Author: edmanm
Date: 2007-05-10 00:41:19 -0400 (Thu, 10 May 2007)
New Revision: 1725

Modified:
   trunk/
   trunk/src/gui/mainwindow.cpp
Log:
 r1825@adrastea:  edmanm | 2007-05-10 00:44:36 -0400
 Make the main window smaller when the user has no tray/dock thing and we hide
 the "Hide" button and checkbox, so there is less of a big empty space at the
 bottom.



Property changes on: trunk
___________________________________________________________________
 svk:merge ticket from /vidalia/local/trunk [r1825] on 54b3572a-7227-0410-958f-53ecd705b71a

Modified: trunk/src/gui/mainwindow.cpp
===================================================================
--- trunk/src/gui/mainwindow.cpp	2007-05-10 04:41:00 UTC (rev 1724)
+++ trunk/src/gui/mainwindow.cpp	2007-05-10 04:41:19 UTC (rev 1725)
@@ -160,6 +160,8 @@
     /* Don't let people hide the main window, since that's all they have. */
     ui.chkShowOnStartup->hide();
     ui.btnHide->hide();
+    setMinimumHeight(height()-ui.btnHide->height());
+    setMaximumHeight(height()-ui.btnHide->height());
     show();
   }
 }