]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix stock item binding.
authorÉtienne Bersac <bersace@src.gnome.org>
Wed, 7 Jan 2009 20:31:30 +0000 (20:31 +0000)
committerÉtienne Bersac <bersace@src.gnome.org>
Wed, 7 Jan 2009 20:31:30 +0000 (20:31 +0000)
svn path=/trunk/; revision=2285

ChangeLog
vapi/gtk+-2.0.vapi

index 8defc67ad6d6e885a69992161156860325c6348c..b6f22d6d11f4a1685edf5dbb055695665693c774 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-07  Étienne BERSAC  <bersace03@laposte.net>
+
+       * 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  <j@bitron.ch>
 
        * vala/valaclass.vala:
index 6a545f270573335d1ddb3adf905b0558bf0af2e9..bcfa8ef541009f0213035ea7ecef500385259f42 100644 (file)
@@ -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;