More Perl/Gtk 0.6123



Hi,

Lupus, thank you for your response to my previous email, please enjoy your
vacation and DON'T spend any time on any of this on my account :-) I am 
just posting my questions as they arise. None of this is urgent for me, I 
am only trying to tie up some loose ends in my Glade-Perl source code
generator.

Some more wierdness ?? Again, please excuse me if I have got it wrong.
    
* How do a use Gnome::MessageBox and Gnome::Dialog methods to get refs to 
    vbox etc? I get an error that Gtk::Window cannot do vbox.

* Gnome::DockItem - Most of the bindings seem to specify 'dock_item' as arg
    but use 'doc_item' (missing k) for methods. Perhaps I have misunderstood 
    again.

* Gnome::DockItem - I am having trouble passing a 'behavior'. How should I
    pass the elements? I have tried making up an int and I have tried
    supplying extra, dummy args but then I get a segfault, rather than a
    usage message and I can't find Gnome::DockItemBehavior->new(). 

Calling:
    $widgets->{'dockitem1'} = 
        new Gnome::DockItem('dockitem1', ['locked', 'exclusive']);

Gives:
    Gtk-CRITICAL **: file gtkwidget.c: line 1054 (gtk_widget_new): 
        assertion `gtk_type_is_a (widget_type, GTK_TYPE_WIDGET)' failed.
    Gtk-CRITICAL **: file gtkwidget.c: line 1054 (gtk_widget_new): 
        assertion `gtk_type_is_a (widget_type, GTK_TYPE_WIDGET)' failed.
    Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'
    Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget'

This must be my fault but I am lost :-(

Regards, Dermot




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