GNOME Bugzilla – Bug 88150
no matching function for call to `MyMenu::popup (guint &, guint32 &)
Last modified: 2004-12-22 21:47:04 UTC
make in gtkmm-1.3.18/examples/menu yields: menu.cc: In method `bool MyMenu::button_press(_GdkEvent *)': menu.cc:99: no matching function for call to `MyMenu::popup (guint &, guint32 &)' ../../gtk/gtkmm/menu.h:126: candidates are: void Gtk::Menu::popup(Gtk::MenuShell &, Gtk::MenuItem &, void (*)(GtkMenu *, gint *, gint *, gboolean *, void *), void *, unsigned int, unsigned int) ../../gtk/gtkmm/menu.h:132: void Gtk::Menu::popup(const SigC::Slot3<void,int &,int &,bool &> &, unsigned int, unsigned int) ../../gtk/gtkmm/menu.h:141: void Gtk::Menu::popup(Gtk::Window &, unsigned int, unsigned int) (same with menu2.cc)
The arguments to popup() have changed. Please look at the reference documentation.
If the arguments have changed, then why is this example still included unchanged with the distribution? Wrong arguments make an example rather useless for someone who wishes to understand an API. (Maybe they make the example quite useful for someone who looks up the correct arguments in the reference documentation, but that's not the point of an example, IMHO.)
Sorry, I thought that you were talking about your own code.
Fixed temporarily.