Commit e648c2d6 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

use the resize queue.

Wed Mar 18 02:06:52 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.

                * gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
                        setting certain arguments, so they actually take affect.
                                (gtk_window_set_policy): likewise.
parent 467e4e73
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
Wed Mar 18 02:06:52 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
* gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
setting certain arguments, so they actually take affect.
(gtk_window_set_policy): likewise.
Tue Mar 17 15:51:30 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: gboolean type changed to int
......
......@@ -5,10 +5,8 @@ Bugs:
* pasting into a GtkEntry that already has a very long string,
causes the app to hang.
* signal parameters don't seem to get refreshed on recursive invokations
of GTK_NO_RECURSE signals, which causes the restarted emissions to loose
their actual point, i.e. parameter changes on the restarted emission,
needs further investigation.
* scrolled windows get cought in an endless reallocation loop under
certain (rare) circumstances.
* Widget redrawing when the window resizes sometimes messes up.
GtkLabels sometimes redraw without clearing up the underlying background on
......@@ -223,4 +221,4 @@ TODO AFTER GTK 1.0
* Try to rationally deal with someone else deleting one of our
windows??? This would mean keeping track of our window heirarchy
ourselves, for one thing, and will never be safe, because of
race conditions.
\ No newline at end of file
race conditions.
......@@ -299,8 +299,8 @@ gtk_container_border_width (GtkContainer *container,
{
container->border_width = border_width;
if (container->widget.parent && GTK_WIDGET_VISIBLE (container))
gtk_container_need_resize (GTK_CONTAINER (container->widget.parent));
if (GTK_WIDGET_REALIZED (container))
gtk_widget_queue_resize (GTK_WIDGET (container));
}
}
......
......@@ -245,12 +245,15 @@ gtk_window_set_arg (GtkWindow *window,
break;
case ARG_AUTO_SHRINK:
window->auto_shrink = (GTK_VALUE_BOOL (*arg) != FALSE);
gtk_window_set_hints (GTK_WIDGET (window), &GTK_WIDGET (window)->requisition);
break;
case ARG_ALLOW_SHRINK:
window->allow_shrink = (GTK_VALUE_BOOL (*arg) != FALSE);
gtk_window_set_hints (GTK_WIDGET (window), &GTK_WIDGET (window)->requisition);
break;
case ARG_ALLOW_GROW:
window->allow_grow = (GTK_VALUE_BOOL (*arg) != FALSE);
gtk_window_set_hints (GTK_WIDGET (window), &GTK_WIDGET (window)->requisition);
break;
case ARG_WIN_POS:
gtk_window_position (window, GTK_VALUE_ENUM (*arg));
......@@ -382,6 +385,8 @@ gtk_window_set_policy (GtkWindow *window,
window->allow_shrink = (allow_shrink != FALSE);
window->allow_grow = (allow_grow != FALSE);
window->auto_shrink = (auto_shrink != FALSE);
gtk_window_set_hints (GTK_WIDGET (window), &GTK_WIDGET (window)->requisition);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment