After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 88150 - no matching function for call to `MyMenu::popup (guint &, guint32 &)
no matching function for call to `MyMenu::popup (guint &, guint32 &)
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.0
Other Linux
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-07-14 18:08 UTC by Joern P. Meier
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Joern P. Meier 2002-07-14 18:08:11 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)
Comment 1 Murray Cumming 2002-07-15 07:40:30 UTC
The arguments to popup() have changed. Please look at the reference
documentation.
Comment 2 Joern P. Meier 2002-07-15 13:50:43 UTC
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.)
Comment 3 Murray Cumming 2002-07-15 16:07:08 UTC
Sorry, I thought that you were talking about your own code.
Comment 4 Murray Cumming 2002-07-17 07:17:15 UTC
Fixed temporarily.