]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-2.0: Fix Gtk.MessageDialog constructor binding
authorMark Lee <marklee@src.gnome.org>
Thu, 3 Sep 2009 06:18:22 +0000 (23:18 -0700)
committerJaap A. Haitsma <jaap@haitsma.org>
Sat, 5 Sep 2009 16:59:41 +0000 (18:59 +0200)
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.

vapi/gtk+-2.0.vapi
vapi/packages/gtk+-2.0/gtk+-2.0.metadata

index 2092b6b85e382b9adf63fa26f3fb700584e4af9a..b54d04a62560b66629709f1f3dfca934732cfe4b 100644 (file)
@@ -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, ...);
index 7e6afb8fd9fc95527e51546e507abf7ae6fb698c..1b7a6be2f1b12b1b3a1d00d2ac9d777751163af8 100644 (file)
@@ -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"