dia r4377 - in trunk: . lib
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r4377 - in trunk: . lib
- Date: Sat, 11 Apr 2009 14:25:11 +0000 (UTC)
Author: hans
Date: Sat Apr 11 14:25:11 2009
New Revision: 4377
URL: http://svn.gnome.org/viewvc/dia?rev=4377&view=rev
Log:
2009-04-11 Hans Breuer <hans breuer org>
* lib/propdialogs.c : derive initial scrolling area of properties
dialog from screen size, only use hardcoded values as fallback
Modified:
trunk/ChangeLog
trunk/lib/propdialogs.c
Modified: trunk/lib/propdialogs.c
==============================================================================
--- trunk/lib/propdialogs.c (original)
+++ trunk/lib/propdialogs.c Sat Apr 11 14:25:11 2009
@@ -283,10 +283,12 @@
GtkRequisition requisition;
GtkWidget *vbox = prop_dialog_container_pop(dialog);
GtkWidget *swin = prop_dialog_container_pop(dialog);
-
+ GdkScreen *screen = gtk_widget_get_screen(swin);
+ guint sheight = screen ? (2 * gdk_screen_get_height(screen)) / 3 : 400;
+
gtk_widget_size_request (vbox, &requisition);
/* I'd say default size calculation for scrollable is quite broken */
- gtk_widget_set_size_request (swin, -1, requisition.height > 400 ? 400 : requisition.height);
+ gtk_widget_set_size_request (swin, -1, requisition.height > sheight ? sheight : requisition.height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]