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 512437 - Miss Gtk.Notebook.page_num function in gtk+-2.0 vapi
Miss Gtk.Notebook.page_num function in gtk+-2.0 vapi
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.3.x
Other All
: Normal minor
: ---
Assigned To: Jürg Billeter
Vala maintainers
: 531985 540713 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-27 19:48 UTC by sanpi
Modified: 2008-12-17 21:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk+-2.0.diff (763 bytes, patch)
2008-04-10 17:01 UTC, sanpi
reviewed Details | Review
Possible fix (1.08 KB, patch)
2008-12-17 08:50 UTC, Evan Nemerson
committed Details | Review

Description sanpi 2008-01-27 19:48:31 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:
Comment 1 Jürg Billeter 2008-01-29 14:49:39 UTC
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.
Comment 2 sanpi 2008-02-01 22:57:02 UTC
ok, but the NotebookPage class exist and it used in Notebook class.

It's GTK+ namespace bug :/
Comment 3 sanpi 2008-04-10 17:00:57 UTC
Hi,

How do you fix binding bugs ? I posted some bugs (for example #523876) and the patch is applied directly. Why not here ?
Comment 4 sanpi 2008-04-10 17:01:21 UTC
Created attachment 109009 [details] [review]
gtk+-2.0.diff
Comment 5 Jürg Billeter 2008-04-13 13:50:01 UTC
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.
Comment 6 Jared Moore 2008-06-29 03:32:44 UTC
*** Bug 540713 has been marked as a duplicate of this bug. ***
Comment 7 Jared Moore 2008-06-29 03:33:24 UTC
*** Bug 531985 has been marked as a duplicate of this bug. ***
Comment 8 Evan Nemerson 2008-12-17 08:50:28 UTC
Created attachment 124848 [details] [review]
Possible fix
Comment 9 Jürg Billeter 2008-12-17 21:20:04 UTC
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.