summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web-view.c8
-rw-r--r--src/web-view.h3
2 files changed, 7 insertions, 4 deletions
diff --git a/src/web-view.c b/src/web-view.c
index ed64d16..b31336a 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -833,8 +833,8 @@ mq_web_view_zoom_reset(MqWebView *web_view)
webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(web_view), zoom_level);
}
-static void
-add_chooser_filters(GtkFileChooser *chooser)
+void
+mq_web_view_add_html_mhtml_file_chooser_filters(GtkFileChooser *chooser)
{
GtkFileFilter *filter;
@@ -917,7 +917,7 @@ mq_web_view_open(MqWebView *web_view)
* if any. */
g_free(dir);
- add_chooser_filters(chooser);
+ mq_web_view_add_html_mhtml_file_chooser_filters(chooser);
g_signal_connect(dialog, "response",
G_CALLBACK(open_response_cb), web_view);
@@ -1140,7 +1140,7 @@ mq_web_view_save(MqWebView *web_view)
gtk_file_chooser_set_current_name(chooser, filename);
g_free(filename);
- add_chooser_filters(chooser);
+ mq_web_view_add_html_mhtml_file_chooser_filters(chooser);
type_combo_box = gtk_combo_box_text_new();
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box),
diff --git a/src/web-view.h b/src/web-view.h
index 913e1f9..7a33789 100644
--- a/src/web-view.h
+++ b/src/web-view.h
@@ -67,6 +67,9 @@ void
mq_web_view_zoom_reset(MqWebView *web_view);
void
+mq_web_view_add_html_mhtml_file_chooser_filters(GtkFileChooser *chooser);
+
+void
mq_web_view_open(MqWebView *web_view);
void