From 5fce9400136577ab9890d2cc6ed4c86997b89765 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 28 Nov 1998 00:01:38 +0000 Subject: [PATCH] 1998-11-27 Miguel de Icaza * gscreen.c (x_create_panel): Set the usize for the ministatus label to be (0, -1), this means: do not request any horizontal space, use any vertical space given. Put the ministatus inside an hbox, and use gtk_container_set_resize_mode in this hbox to stop any queue events from being propagated up in the hierachy of widgets This kills all of the CList/GnomeIconList/Scrollbar/Toolbar flickering now. --- gnome/ChangeLog | 13 +++++++++++++ gnome/gscreen.c | 10 ++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 3af95603f..7f5a158eb 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,16 @@ +1998-11-27 Miguel de Icaza + + * gscreen.c (x_create_panel): Set the usize for the ministatus + label to be (0, -1), this means: do not request any horizontal + space, use any vertical space given. + + Put the ministatus inside an hbox, and use + gtk_container_set_resize_mode in this hbox to stop any queue + events from being propagated up in the hierachy of widgets + + This kills all of the CList/GnomeIconList/Scrollbar/Toolbar + flickering now. + 1998-11-26 Miguel de Icaza * gtree.c: More work on gtree. It is basically ready to stick diff --git a/gnome/gscreen.c b/gnome/gscreen.c index 78996d4d4..646c4b423 100644 --- a/gnome/gscreen.c +++ b/gnome/gscreen.c @@ -2056,7 +2056,7 @@ button_switch_to_listing (WPanel *panel) void x_create_panel (Dlg_head *h, widget_data parent, WPanel *panel) { - GtkWidget *status_line, *filter, *vbox; + GtkWidget *status_line, *filter, *vbox, *ministatus_box; GtkWidget *frame, *cwd, *back_p, *fwd_p; GtkWidget *display; @@ -2099,6 +2099,7 @@ x_create_panel (Dlg_head *h, widget_data parent, WPanel *panel) /* ministatus */ panel->ministatus = gtk_label_new (""); /* was a cliplabel */ + gtk_widget_set_usize (panel->ministatus, 0, -1); gtk_misc_set_alignment (GTK_MISC (panel->ministatus), 0.0, 0.0); gtk_misc_set_padding (GTK_MISC (panel->ministatus), 3, 0); gtk_widget_show (panel->ministatus); @@ -2149,9 +2150,14 @@ x_create_panel (Dlg_head *h, widget_data parent, WPanel *panel) gtk_table_attach (GTK_TABLE (panel->table), status_line, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, GTK_SHRINK, 0, 0); - gtk_table_attach (GTK_TABLE (panel->table), panel->ministatus, 0, 1, 2, 3, + ministatus_box = gtk_hbox_new (FALSE, 0); + gtk_container_add (GTK_CONTAINER (ministatus_box), panel->ministatus); + gtk_widget_show (ministatus_box); + gtk_container_set_resize_mode (GTK_CONTAINER (ministatus_box), GTK_RESIZE_QUEUE); + gtk_table_attach (GTK_TABLE (panel->table), ministatus_box, 0, 1, 2, 3, GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0, 0, 0); + gtk_table_attach (GTK_TABLE (panel->table), frame, 0, 1, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0);