use gdk_drawable_get_size() instead of looking at widget->allocation since
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. svn path=/trunk/; revision=25175
This commit is contained in:

committed by
Michael Natterer

parent
b3fb3cf608
commit
f720839757
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
||||
2008-03-23 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpcontext.c (gimp_context_real_set_display): set the
|
||||
|
@ -492,8 +492,9 @@ gimp_session_info_get_geometry (GimpSessionInfo *info)
|
||||
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user