gimp r25175 - in trunk: . app/widgets



Author: mitch
Date: Sun Mar 23 13:30:03 2008
New Revision: 25175
URL: http://svn.gnome.org/viewvc/gimp?rev=25175&view=rev

Log:
2008-03-23  Michael Natterer  <mitch gimp org>

	* app/widgets/gimpsessioninfo.c (gimp_session_info_get_geometry):
	use gdk_drawable_get_size() instead of looking at
	widget->allocation since the latter is not yet updated if this
	function is called from the dialog factory's "configure-event"
	callback. Fixes remembering of dialog sizes within one session.



Modified:
   trunk/ChangeLog
   trunk/app/widgets/gimpsessioninfo.c

Modified: trunk/app/widgets/gimpsessioninfo.c
==============================================================================
--- trunk/app/widgets/gimpsessioninfo.c	(original)
+++ trunk/app/widgets/gimpsessioninfo.c	Sun Mar 23 13:30:03 2008
@@ -492,8 +492,9 @@
 
       if (! info->toplevel_entry || info->toplevel_entry->remember_size)
         {
-          info->width  = info->widget->allocation.width;
-          info->height = info->widget->allocation.height;
+          gdk_drawable_get_size (GDK_DRAWABLE (info->widget->window),
+                                 &info->width,
+                                 &info->height);
         }
       else
         {



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