Re: Problem with resizing frames



* Angelo Cano <acano systec com>:

On Sat, Dec 02, 2000 at 02:50:14AM +0100, Kjetil Thuen wrote:
I am working on an app, and have recently come across a problem. Its a
little hard to explain, so I have isolated the problem in small example
to help illustrate the problem.

maybe someting like this:


void
toggled (GtkToggleButton *togglebutton)
{
   if (togglebutton->active) 
      gtk_widget_hide (gtk_object_get_data(GTK_OBJECT(window),"frame3"));
   else 
      gtk_widget_show (gtk_object_get_data(GTK_OBJECT(window),"frame3"));

     /* pass in to this function vbox1 that you declared in main() and... */
       gtk_widget_queue_resize (vbox1);


Works like a charm. Thank you very much.

Kjetil
-- 
    Quidquid latine dictum sit, altum viditur
PGP: http://grustibus.sourceforge.net/kjetilt-pgp.asc




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