GNOME Bugzilla – Bug 512437
Miss Gtk.Notebook.page_num function in gtk+-2.0 vapi
Last modified: 2008-12-17 21:20:04 UTC
Please describe the problem: Path for add function : --- gtk+-2.0.vapi.old 2008-01-27 20:44:20.000000000 +0100 +++ gtk+-2.0.vapi 2008-01-27 20:42:49.000000000 +0100 @@ -3650,6 +3650,7 @@ public int insert_page_menu (Gtk.Widget child, Gtk.Widget tab_label, Gtk.Widget menu_label, int position); public Notebook (); public void next_page (); + public int page_num (Gtk.Widget child); public void popup_disable (); public void popup_enable (); public int prepend_page (Gtk.Widget child, Gtk.Widget tab_label); Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
It's not missing, it's just in the NotebookPage class instead of the Notebook class, which is wrong, of course. That's actually a bug in gen-introspect.
ok, but the NotebookPage class exist and it used in Notebook class. It's GTK+ namespace bug :/
Hi, How do you fix binding bugs ? I posted some bugs (for example #523876) and the patch is applied directly. Why not here ?
Created attachment 109009 [details] [review] gtk+-2.0.diff
Most .vapi files are generated from .gi, .metadata, and other files using vapigen, which means that we have to update the .metadata file to fix bugs in the generated .vapi file. glib-2.0.vapi is handwritten, so we can directly apply patches.
*** Bug 540713 has been marked as a duplicate of this bug. ***
*** Bug 531985 has been marked as a duplicate of this bug. ***
Created attachment 124848 [details] [review] Possible fix
2008-12-17 Jürg Billeter <j@bitron.ch> * vapi/packages/gtk+-2.0/: Fix gtk_notebook_page_num binding, patch by Evan Nemerson, fixes bug 512437 * vapi/gtk+-2.0.vapi: regenerated Fixed in r2200.