diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 12:42:06 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 12:42:06 (EDT) |
commit | 0b796336a0c5ce1cf5185c2946c4ff22fa3da296 (patch) | |
tree | 7007c8204d5785d74efa436291a1b7318de4b800 | |
parent | a8672f6e466009c1105de4129d53cbd21d650dca (diff) | |
download | marquee-0b796336a0c5ce1cf5185c2946c4ff22fa3da296.zip marquee-0b796336a0c5ce1cf5185c2946c4ff22fa3da296.tar.gz marquee-0b796336a0c5ce1cf5185c2946c4ff22fa3da296.tar.bz2 |
mq_web_view_*_scheme_methods: Make const
-rw-r--r-- | src/web-view-schemes/normal.c | 2 | ||||
-rw-r--r-- | src/web-view-schemes/schemes.h | 4 | ||||
-rw-r--r-- | src/web-view-schemes/view-source.c | 2 | ||||
-rw-r--r-- | src/web-view.c | 20 |
4 files changed, 14 insertions, 14 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c index 4b07100..034a363 100644 --- a/src/web-view-schemes/normal.c +++ b/src/web-view-schemes/normal.c @@ -763,7 +763,7 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme) gtk_widget_show_all(dialog); } -MqWebViewSchemeMethods mq_web_view_normal_scheme_methods = { +const MqWebViewSchemeMethods mq_web_view_normal_scheme_methods = { .rewrite_uri = rewrite_uri, .display_uri = display_uri, .context_menu = context_menu, diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h index 4412069..dccd1e2 100644 --- a/src/web-view-schemes/schemes.h +++ b/src/web-view-schemes/schemes.h @@ -57,8 +57,8 @@ typedef struct { void (*save_file) (MqWebView *, MqWebViewScheme *); } MqWebViewSchemeMethods; -extern MqWebViewSchemeMethods mq_web_view_normal_scheme_methods; -extern MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods; +extern const MqWebViewSchemeMethods mq_web_view_normal_scheme_methods; +extern const MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods; void mq_web_view_normal_scheme_init(MqWebViewNormalScheme *scheme); diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index d8530dc..667fc24 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -207,7 +207,7 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme) *scheme = *scheme; } -MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods = { +const MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods = { .rewrite_uri = rewrite_uri, .display_uri = display_uri, .context_menu = context_menu, diff --git a/src/web-view.c b/src/web-view.c index eded264..03be1e9 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -34,16 +34,16 @@ #include "web-view-schemes/schemes.h" struct _MqWebView { - WebKitWebView parent_instance; - MqTabPage *tab_page; - MqWebViewScheme scheme; - MqWebViewSchemeMethods *scheme_methods; - gchar *uri; - MqConfig *config; - WebKitHitTestResult *hit_test_result; - WebKitHitTestResult *mouse_target_hit_test_result; - GtkComboBox *save_type_combo_box; - GFile *save_file; + WebKitWebView parent_instance; + MqTabPage *tab_page; + MqWebViewScheme scheme; + const MqWebViewSchemeMethods *scheme_methods; + gchar *uri; + MqConfig *config; + WebKitHitTestResult *hit_test_result; + WebKitHitTestResult *mouse_target_hit_test_result; + GtkComboBox *save_type_combo_box; + GFile *save_file; }; enum { |