Re: GtkTable isn't updating properly



The two-click thing is still a problem, but the invisible label issue is resolved. Apparently calling hide_all on a hierarchy containing a GtkButton can only be reversed by calling show_all on the button, or else casting to GTK_BIN and calling show directly on it's child.

----- Original Message -----
From: Lindley M French <lfrench1 gmu edu>
Date: Monday, February 18, 2008 2:56 pm
Subject: Re: GtkTable isn't updating properly

> Well, calling gdk_window_invalidate_rect doesn't appear to be 
> helping. gtk_widget_queue_draw and gtk_widget_queue_resize didn't 
> help either, applied either to the table or to its parent. This is 
> a darn bizarre bug, especially since it now appears not to occur 
> on Linux, only Windows.
> 
> New problem: I'm trying to put a GtkButton in one column of this 
> GtkTable. But it isn't showing up properly, or properly calling 
> its "clicked" handler.
> 
> I'm using gtk_button_new_with_label("Button");, but the button 
> shows up without a label and only about 1 space wide.
> 
> ----- Original Message -----
> From: jcupitt gmail com
> Date: Monday, February 18, 2008 11:56 am
> Subject: Re: GtkTable isn't updating properly
> 
> > On 18/02/2008, Lindley M French <lfrench1 gmu edu> wrote:
> > > I have a GtkTable containing labels and entries. I don't want 
> > all label/entry pairs to be visible at all times. To control 
> this, 
> > I use gtk_widget_show/hide on the labels and entries of a given row.
> > >
> > > Previously, this worked just fine. After I refactored 
> slightly, 
> > it no longer does, and I cannot pin down the reason.
> > 
> > I find I have to call gtk_widget_queue_resize() on the widget
> > enclosing the table after a table's member changes size. I'd try
> > putting in a few of them after you change the visibility of your
> > labels and entries.
> > 
> > If your table is large, you'll also find that having many gtkentries
> > is very slow. If possible, it's much faster to create and 
> destroy them
> > rather than to show and hide.
> > 
> > John
> > 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]