1998-11-27 Miguel de Icaza <miguel@nuclecu.unam.mx>

* 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.
This commit is contained in:
Miguel de Icaza 1998-11-28 00:01:38 +00:00
parent 624fc415ab
commit 5fce940013
2 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,16 @@
1998-11-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* 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 <miguel@nuclecu.unam.mx> 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtree.c: More work on gtree. It is basically ready to stick * gtree.c: More work on gtree. It is basically ready to stick

View File

@ -2056,7 +2056,7 @@ button_switch_to_listing (WPanel *panel)
void void
x_create_panel (Dlg_head *h, widget_data parent, WPanel *panel) 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 *frame, *cwd, *back_p, *fwd_p;
GtkWidget *display; GtkWidget *display;
@ -2099,6 +2099,7 @@ x_create_panel (Dlg_head *h, widget_data parent, WPanel *panel)
/* ministatus */ /* ministatus */
panel->ministatus = gtk_label_new (""); /* was a cliplabel */ 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_alignment (GTK_MISC (panel->ministatus), 0.0, 0.0);
gtk_misc_set_padding (GTK_MISC (panel->ministatus), 3, 0); gtk_misc_set_padding (GTK_MISC (panel->ministatus), 3, 0);
gtk_widget_show (panel->ministatus); 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_table_attach (GTK_TABLE (panel->table), status_line, 0, 1, 0, 1,
GTK_EXPAND | GTK_FILL, GTK_SHRINK, 0, 0); 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, GTK_EXPAND | GTK_FILL | GTK_SHRINK,
0, 0, 0); 0, 0, 0);
gtk_table_attach (GTK_TABLE (panel->table), frame, 0, 1, 3, 4, gtk_table_attach (GTK_TABLE (panel->table), frame, 0, 1, 3, 4,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
0, 0, 0); 0, 0, 0);