Re: gtk_widget_size_allocate ??

From: Date: Thu, 04 Jul 2002 20:25:25 +0000
Subject: Re: gtk_widget_size_allocate ??
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2211@lists.php.net to get a copy of this message
Try showing the clist before adding it to the scrolledwindow maybe? (I could have that the wrong way round, play with the thought ;-) Containers don't take up any screen space until they have a child or children added to them, their size allocation depends entirely on the child's size request. ----- Original Message ----- From: "Danny Cardonne" <d.cardonne@univers-cite.qc.ca> To: "Steph" <sfox@php.net> Cc: "php-gtk" <php-gtk-general@lists.php.net> Sent: Thursday, July 04, 2002 7:18 PM Subject: Re: [PHP-GTK] gtk_widget_size_allocate ?? > Steph wrote: > > it's a bit hard to tell without a code snippet :) > > > > basically something hasn't been created that should have been and a > > later internal call to it is failing. > > > > ----- Original Message ----- > >>Gtk-CRITICAL **: file gtkwidget.c: line 2455 > > > > (gtk_widget_size_allocate): > > > >>assertion 'widget != NULL' failed > > here the code that produce the error: > > $playlist = &new GtkCList(2); > $playlist->connect("select-row","remove_from_playlist"); > $playlist->set_column_visibility(0,false); > $playlist->set_column_visibility(1,true); > > $playlist_scroll = &new GtkScrolledWindow(); > $playlist_scroll->set_border_width(5); > $playlist_scroll->set_policy(GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); > $playlist_scroll->add($playlist); > > > so what's missing or wrong?? > -- > Danny > >

« previous php.gtk.general (#2211) next »