gdm r6322 - in trunk: . gui/simple-greeter



Author: mccann
Date: Tue Jul 22 00:55:58 2008
New Revision: 6322
URL: http://svn.gnome.org/viewvc/gdm?rev=6322&view=rev

Log:
2008-07-21  William Jon McCann  <jmccann redhat com>

	* gui/simple-greeter/gdm-greeter-login-window.c
	(gdm_greeter_login_window_size_request):
	Set a minimum width for the login window.



Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/gdm-greeter-login-window.c

Modified: trunk/gui/simple-greeter/gdm-greeter-login-window.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-greeter-login-window.c	(original)
+++ trunk/gui/simple-greeter/gdm-greeter-login-window.c	Tue Jul 22 00:55:58 2008
@@ -1702,7 +1702,10 @@
         requisition->width += 2 * GTK_CONTAINER (widget)->border_width;
         requisition->height += 2 * GTK_CONTAINER (widget)->border_width;
 
-        requisition->width = MIN (requisition->width, .50 * screen_w);
+        /* Make width be at least 33% screen width
+         * and height be at most 80% of screen height
+         */
+        requisition->width = MAX (requisition->width, .33 * screen_w);
         requisition->height = MIN (requisition->height, .80 * screen_h);
 }
 



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