diff options
author | Ivan Komarov <ivan.komarov@pidgin.im> | 2011-03-30 22:36:30 +0000 |
---|---|---|
committer | Ivan Komarov <ivan.komarov@pidgin.im> | 2011-03-30 22:36:30 +0000 |
commit | e8529026bebe81e76a16fed6346d70861b197ba1 (patch) | |
tree | 9bc0e778ed3535e111e096e11926d92fd0ed9f5f /pidgin/minidialog.h | |
parent | dad7acafbd2c5bb13addf0edfcc63407c64ba7d2 (diff) | |
download | pidgin-e8529026bebe81e76a16fed6346d70861b197ba1.tar.gz |
Finally merged the code that fixes #5038 to i.p.p.
applied changes from 8fb03dafb93a8568036db2898977dd11d8da97d2
through f766f8f0c8270edaf37eff506cf465a84a2a5b58
Diffstat (limited to 'pidgin/minidialog.h')
-rw-r--r-- | pidgin/minidialog.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pidgin/minidialog.h b/pidgin/minidialog.h index ad5308e326..1bdd54b3ec 100644 --- a/pidgin/minidialog.h +++ b/pidgin/minidialog.h @@ -139,6 +139,23 @@ void pidgin_mini_dialog_set_title(PidginMiniDialog *mini_dialog, void pidgin_mini_dialog_set_description(PidginMiniDialog *mini_dialog, const char *description); +/** Enable GMarkup elements in the mini-dialog's description. + * @param mini_dialog a mini-dialog + */ +void pidgin_mini_dialog_enable_description_markup(PidginMiniDialog *mini_dialog); + +/** Mini-dialogs support hyperlinks in their description + * (you should first call pidgin_mini_dialog_enable_description_markup() on a given + * dialog to enable them). */ +gboolean pidgin_mini_dialog_links_supported(void); + +/** Sets a callback which gets invoked when a hyperlink in the dialog's description is clicked on. + * @param mini_dialog a mini-dialog + * @param cb the callback to invoke + * @param user_data the user data to pass to the callback + */ +void pidgin_mini_dialog_set_link_callback(PidginMiniDialog *mini_dialog, GCallback cb, gpointer user_data); + /** Shortcut for setting a mini-dialog's icon via GObject properties. * @param mini_dialog a mini-dialog * @param icon_name the Gtk stock ID of an icon, or @c NULL for no icon. @@ -166,6 +183,13 @@ void pidgin_mini_dialog_add_button(PidginMiniDialog *mini_dialog, const char *text, PidginMiniDialogCallback clicked_cb, gpointer user_data); +/** Equivalent to pidgin_mini_dialog_add_button(), the only difference + * is that the mini-dialog won't be closed after the button is clicked. + */ +void pidgin_mini_dialog_add_non_closing_button(PidginMiniDialog *mini_dialog, + const char *text, PidginMiniDialogCallback clicked_cb, + gpointer user_data); + /** Gets the number of widgets packed into PidginMiniDialog.contents. * @param mini_dialog a mini-dialog * @return the number of widgets in @a mini_dialog->contents. |