From: Étienne Bersac Date: Wed, 7 Jan 2009 20:31:30 +0000 (+0000) Subject: Fix stock item binding. X-Git-Tag: VALA_0_5_4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f69849d2edaed5ff02708c1e9f9809c3215c9746;p=thirdparty%2Fvala.git Fix stock item binding. svn path=/trunk/; revision=2285 --- diff --git a/ChangeLog b/ChangeLog index 8defc67ad..b6f22d6d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-01-07 Étienne BERSAC + + * vapi/gtk+-2.0.vapi: + + Use struct instead of compact class for GtkStockItem. + + Added binding for gtk_stock_lookup(). + 2009-01-07 Jürg Billeter * vala/valaclass.vala: diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index 6a545f270..bcfa8ef54 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -3458,9 +3458,10 @@ namespace Gtk { public virtual signal void text_popped (uint context_id, string text); public virtual signal void text_pushed (uint context_id, string text); } - [Compact] [CCode (copy_function = "gtk_stock_item_copy", cheader_filename = "gtk/gtk.h")] - public class StockItem { + public struct StockItem { + [CCode (cname = "gtk_stock_lookup")] + public static bool lookup(string stock_id, StockItem item); public uint keyval; public weak string label; public Gdk.ModifierType modifier;