Re: [gtkmm] some easy questions from a beginner



You were right. The thing is that I wrote "nsMenu nsMenu()" because I had on
my head the copy constructor or something like this. It's my fault.

Thank you,

Dani P.

On Thu, 11 Jul 2002, Marcelo E. Magallon wrote:
> Date: Thu, 11 Jul 2002 17:17:38 +0200
> To: gtkmm-list gnome org
> From: "Marcelo E. Magallon" <marcelo magallon bigfoot com>
> Subject: Re: [gtkmm] some easy questions from a beginner
> 
> >> Daniel Perez Alcazar <danielpa wanadoo es> writes:
> 
>  > 	1- I can't do a "pack_start" with any thing different to a
>  > 	Widget object.  I want to do a pack_start(menu,false,false,0),
>  > 	where "menu" is an object derived from the MenuBar class.
> 
>  It works fine here.
> 
>  > /////////////////////////// nsMenu.h ////////////////////////////
>  > 
>  > #include <gtk--/menubar.h>
>  > #include <gtk--/menu.h>
>  > 
>  > class nsMenu : public Gtk::MenuBar
>  > {
>  > 	nsMenu::nsMenu();
> 
>  what is that supposed to do?  I suspect you want to declare a
>  constructor, so the line should be:
> 
>         nsMenu();
> 
>  Since you don't have a constructor other than the default that might
>  explain your other problem.
> 
>  > 	nsMenu menu();
> 
>  try with 'nsMenu menu;'
> 
>  With all due respect, grab a C++ book.
> 
> -- 
> Marcelo
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 
-- 
Spruce: I wonder what this button marked "EOF" does...




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