diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 02:36:43 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 02:36:43 (EDT) |
commit | 49f65fb9c7ad685dc462a3ab8edba76ca0ffc5ce (patch) | |
tree | 2663d7e0b6d7297a5306f93c1b4f9dc88fa86f82 /src | |
parent | 5cbc32055da4c603266881e0ddbc4ee40d3b355d (diff) | |
download | marquee-49f65fb9c7ad685dc462a3ab8edba76ca0ffc5ce.zip marquee-49f65fb9c7ad685dc462a3ab8edba76ca0ffc5ce.tar.gz marquee-49f65fb9c7ad685dc462a3ab8edba76ca0ffc5ce.tar.bz2 |
MqWebView: Make file chooser filters function non-static
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view.c | 8 | ||||
-rw-r--r-- | src/web-view.h | 3 |
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 |