Re: ItemFactory things and callback doesn't working



{
        path            => 'Help',
        type            => '<Branch>'
},
{
        path            => '/Help/About',
        callback        => \&do_about
}

there's a missinh '/' in front of the first Help.
i think you also need to specify '<LastBranch>' instead of '<Branch>' for Help.

now, hmmm... i've a diff. problem than you...

i get :
(gtk1.pl:30270): Gtk-WARNING **: Attempting to add a widget with type GtkMenuItem to a
GtkMenuItem, but as a GtkBin subclass a GtkMenuItem can only contain one widget at a time; it
already contains a widget of type GtkAccelLabel

(gtk1.pl:30270): Gtk-WARNING **: Attempting to add a widget with type GtkMenuItem to a
GtkMenuItem, but as a GtkBin subclass a GtkMenuItem can only contain one widget at a time; it
already contains a widget of type GtkAccelLabel

and the Main menu is the only one to show correctly, the other 2 don't have MenuItems... !?

-Pascal

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



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