Skip to content

added missing functions to MessageDialog #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions generated/gtkd/gtk/MessageDialog.d
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}