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



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



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