Re: [gtk-list] Perl/Gtk CVS 19990922 - 2



On Sun, Sep 26, 1999 at 10:32:13PM +0000, Dermot Musgrove wrote:
> Another bug or my misunderstanding again?
> 
> Calling:
>   $widgets->{'dialog-action_area4'} =   
>     $widgets->{'Gnome_Messagebox1'}->action_area;
> 
> causes
>   Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget'
>   Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'

Well, action_area is NULL until you add widgets to the action area.
I will change the code to return undef in this case (this means that
the code above is useless anyway if you don't add buttons and if you
do it works without the change).

The moral of the story is: add the buttons before accessing 
action_area (this is because of the way GnomeDialog is written).

lupus



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