GNOME Bugzilla – Bug 509736
Signal and the function with the same name
Last modified: 2008-01-17 15:38:16 UTC
Please describe the problem: In certain classes there are signal and function with the same name. In addition sometimes both play crutial role (like for example realized in implementing GtkWidget). Steps to reproduce: Find an object where signal and the finction has the same name (like GtkWidget) Actual results: Try overload function and use signal Expected results: Both should be achivable Does this happen every time? Yes Other information:
Something like that should solve the specific problem about GtkWidget, however it do not solve the problem in general. Index: vapi/gtk+-2.0.vapi =================================================================== --- vapi/gtk+-2.0.vapi (revision 839) +++ vapi/gtk+-2.0.vapi (working copy) @@ -1024,6 +1024,8 @@ public void reparent (Gtk.Widget new_parent); public void reset_rc_styles (); public void reset_shapes (); + [CCode (cname = "gtk_widget_realize", vfunc_name = "realize")] + public virtual void realize_widget(); public int send_expose (Gdk.Event event); public void set_accel_path (string accel_path, Gtk.AccelGroup accel_group); public void set_app_paintable (bool app_paintable); However: 1. What's the best naming convention (is it possible to have it as one name as in Gtk#) 2. How to autogenerate it.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 473804 ***