Re: [glade--]Opening another window from menu

Christof Petig <[email protected]> Fri, 26 Mar 2004 21:59:06 +0100
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
dingo schrieb:
> Hi guys, just trying to open another window via a menu File --> Open
> type thing. Here is my code, following is my error message:

> #include <gtk--/main.h>

gtk-- is the gtkmm1 prefix, use gtkmm/main.h

>         Gtk::Main::run(window);

> mainWindow.cc: In member function `virtual void 
>    mainWindow::on_new_card_set1_activate()':
> mainWindow.cc:23: error: no matching function for call to
> `Gtk::Main::run(inputWindow&)'

this is the gtkmm2 API.

> /usr/include/gtk--/main.h:168: error: candidates are: static void 
>    Gtk::Main::run()

this is the gtkmm1 API.

I think you should concentrate on gtkmm2 and forget (and deinstall 
gtkmm1-dev (unless you _really_ need it (unlikely)))

    Christof