[Github-comments] [geany/geany-plugins] Markdown: Allow exporting Markdown as HTML (#502)
Matthew Brush
notifications at xxxxx
Sat Nov 12 20:21:52 UTC 2016
codebrainz commented on this pull request.
> +
+static void on_export_as_html_activate(GtkMenuItem *item, MarkdownViewer *viewer)
+{
+ GtkWidget *dialog;
+ GtkFileFilter *filter;
+
+ g_return_if_fail(DOC_VALID(document_get_current()));
+
+ dialog = gtk_file_chooser_dialog_new(_("Save HTML File As"),
+ GTK_WINDOW(geany_data->main_widgets->window), GTK_FILE_CHOOSER_ACTION_SAVE,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
+ NULL);
+ gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), TRUE);
+ gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);
+ gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), "index.html");
Might be nice, yeah.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/502
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161112/5729ce6a/attachment.html>
More information about the Github-comments
mailing list