From 0416aa42ac24eda7589bdb664f49de197727143a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Louren=C3=A7o?= Date: Wed, 17 Jun 2020 23:32:24 +0100 Subject: [PATCH] added missing functions to MessageDialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Lourenço --- generated/gtkd/gtk/MessageDialog.d | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/generated/gtkd/gtk/MessageDialog.d b/generated/gtkd/gtk/MessageDialog.d index 96dfde7b3..baf65c521 100644 --- a/generated/gtkd/gtk/MessageDialog.d +++ b/generated/gtkd/gtk/MessageDialog.d @@ -289,4 +289,45 @@ public class MessageDialog : Dialog { gtk_message_dialog_set_markup(gtkMessageDialog, Str.toStringz(str)); } + + /** + * Sets the secondary text of the message dialog to be @messageFormat (with printf()-style). + * + * Params: + * messageFormat = printf()-style format string, or NULL + * + * Since: 2.6 + */ + public void setFormatSecondaryText(string messageFormat) + { + gtk_message_dialog_format_secondary_text(gtkMessageDialog, Str.toStringz(messageFormat)); + } + + /** + * Sets the secondary text of the message dialog to be @messageFormat (with printf()-style), + * which is marked up with the [Pango text markup language][PangoMarkupFormat]. + * Due to an oversight, this function does not escape special XML characters + * like (gtk_message_dialog_new_with_markup()) does. Thus, if the arguments + * may contain special XML characters, you should use (g_markup_printf_escaped()) + * to escape it. + * + * Examples: + * -------------------- + * gchar *msg; + * + * msg = g_markup_printf_escaped (message_format, ...); + * gtk_message_dialog_format_secondary_markup (message_dialog, "%s", msg); + * + * g_free (msg); + * -------------------- + * + * Params: + * messageFormat = printf()-style format string, or NULL + * + * Since: 2.6 + */ + public void setFormatSecondaryMarkup(string messageFormat) + { + gtk_message_dialog_format_secondary_markup(gtkMessageDialog, Str.toStringz(messageFormat)); + } }