From: Mark Lee Date: Thu, 3 Sep 2009 06:18:22 +0000 (-0700) Subject: gtk+-2.0: Fix Gtk.MessageDialog constructor binding X-Git-Tag: 0.7.6~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5da9f0caec78874a32dde729f05d1ab7c623bd8;p=thirdparty%2Fvala.git gtk+-2.0: Fix Gtk.MessageDialog constructor binding The constructor for GtkMessageDialog, gtk_message_dialog_new, takes a printf-style format at the end of its parameter list (as opposed to ending its varargs with a NULL sentinel). Fixes GNOME Bug #593995. --- diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index 2092b6b85..b54d04a62 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -2408,6 +2408,7 @@ namespace Gtk { [CCode (cheader_filename = "gtk/gtk.h")] public class MessageDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { public weak Gtk.Widget label; + [PrintfFormat] [CCode (type = "GtkWidget*", has_construct_function = false)] public MessageDialog (Gtk.Window? parent, Gtk.DialogFlags flags, Gtk.MessageType type, Gtk.ButtonsType buttons, string message_format, ...); public void format_secondary_markup (string message_format, ...); diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata index 7e6afb8fd..1b7a6be2f 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata @@ -235,7 +235,7 @@ GtkMenuShell.children type_arguments="MenuItem" weak="0" GtkMenuShell::cancel has_emitter="1" GtkMenuShell::deactivate has_emitter="1" gtk_menu_shell_append.child type_name="MenuItem" ctype="GtkWidget*" -gtk_message_dialog_new ellipsis="1" +gtk_message_dialog_new ellipsis="1" printf_format="1" gtk_message_dialog_new.parent nullable="1" gtk_message_dialog_new_with_markup ellipsis="1" gtk_message_dialog_new_with_markup.parent nullable="1"