Branch: refs/heads/master Author: Matthew Brush matt@geany.org Committer: Matthew Brush matt@geany.org Date: Sat, 16 Jun 2012 23:28:15 Commit: 51f5ffa0f709109c506936883ac8be7ff6f716f7 https://github.com/geany/geany-plugins/commit/51f5ffa0f709109c506936883ac8be...
Log Message: ----------- geniuspaste: Provide a better message dialog after pasting
Contains a link in the secondary message label to open the paste in a web browser when clicked.
Modified Paths: -------------- geniuspaste/src/geniuspaste.c
Modified: geniuspaste/src/geniuspaste.c 9 files changed, 8 insertions(+), 1 deletions(-) =================================================================== @@ -352,7 +352,14 @@ static void paste(GeanyDocument * doc, const gchar * website) } else { - dialogs_show_msgbox(GTK_MESSAGE_INFO, "%s", p_url); + GtkWidget *dlg = gtk_message_dialog_new(GTK_WINDOW(geany->main_widgets->window), + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, + _("Paste Successful")); + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dlg), + _("Your paste can be found here:\n<a href="%s" " + "title="Click to open the paste in your browser">%s</a>"), p_url, p_url); + gtk_dialog_run(GTK_DIALOG(dlg)); + gtk_widget_destroy(dlg); } } else
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org