[patch] resize queuing (minor change from timj-970919)
- From: Owen Taylor <owt1 cornell edu>
- To: gtk-list <gtk-list redhat com>
- Subject: [patch] resize queuing (minor change from timj-970919)
- Date: 24 Sep 1997 21:07:52 -0400
Tim Janik <Tim.Janik@Hamburg.Netsurf.DE> writes:
> what version of gimp are you using? 0.99.11 has gtk-timj-970919-0.patch.gz
> incorporated, wich get's around the problem of subsequent calls to
> gtk_widget_hide() and gtk_widget_destroy().
Yes. But I immediately deleted it and used my working GTK instead...
(I can't handle three branches at once!)
Sorry about the duplication, I hadn't got around to applying
timj-970919. ("Just some of Tim's refcount blathering, not worth
downloading" ;-)
It seems to fix the problems OK, though I'm not sure why it's
necessary to go through the bother of removing things from the idle
queues. Would there be any problem in just letting the idle handler
take care of the final destruction when it got control? (Not
suggesting a change, merely curious?)
Here's the the one unduplicated patch of the patch (the change
to gtk_widget_set_usize()). It's pretty irrelevant, but might
as well be fixed:
Regards,
Owen
*** gtk+970916/gtk/gtkwidget.c.ots Wed Sep 24 20:48:17 1997
--- gtk+970916/gtk/gtkwidget.c Wed Sep 24 20:49:12 1997
***************
*** 1963,1975 ****
if (height > -1)
aux_info->height = height;
! if (GTK_WIDGET_VISIBLE (widget))
! {
! if (widget->parent && GTK_WIDGET_VISIBLE (widget->parent))
! gtk_widget_queue_resize (GTK_WIDGET (widget->parent));
! else if (GTK_IS_CONTAINER (widget))
! gtk_widget_queue_resize (widget);
! }
}
/*****************************************
--- 1963,1970 ----
if (height > -1)
aux_info->height = height;
! if (GTK_WIDGET_VISIBLE (widget) && widget->parent)
! gtk_widget_queue_resize (widget);
}
/*****************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]