diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-27 01:14:52 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-27 01:14:52 (EDT) |
commit | ee9c711a94eabd665c65f44a3e80c78cf3d4d5e4 (patch) | |
tree | a74f7804cb17c9a4a11c69d04b78bf322bcc6693 /src | |
parent | d2d1f042be847f304bb41c9aea8fe02349c7ffce (diff) | |
download | marquee-ee9c711a94eabd665c65f44a3e80c78cf3d4d5e4.zip marquee-ee9c711a94eabd665c65f44a3e80c78cf3d4d5e4.tar.gz marquee-ee9c711a94eabd665c65f44a3e80c78cf3d4d5e4.tar.bz2 |
mq_tab_new*(): Make uri parameter const
And propagate const correctness on uri throughout MqTab, MqTabChrome,
and MqTabBody.
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-body.c | 2 | ||||
-rw-r--r-- | src/tab-body.h | 2 | ||||
-rw-r--r-- | src/tab-chrome.c | 4 | ||||
-rw-r--r-- | src/tab-chrome.h | 2 | ||||
-rw-r--r-- | src/tab.c | 6 | ||||
-rw-r--r-- | src/tab.h | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/src/tab-body.c b/src/tab-body.c index 77573aa..3e196e1 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -403,7 +403,7 @@ context_menu_cb(WebKitWebView __attribute__((unused)) *web_view, } MqTabBody * -mq_tab_body_new(MqTab *tab, gchar *uri) +mq_tab_body_new(MqTab *tab, const gchar *uri) { MqTabBody *body; diff --git a/src/tab-body.h b/src/tab-body.h index 446228d..1e3b3f9 100644 --- a/src/tab-body.h +++ b/src/tab-body.h @@ -37,7 +37,7 @@ struct MqTabBody { }; MqTabBody * -mq_tab_body_new(MqTab *tab, gchar *uri); +mq_tab_body_new(MqTab *tab, const gchar *uri); GtkWidget * mq_tab_body_get_container(MqTabBody *body); diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 71f3ae6..e790150 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -352,7 +352,7 @@ menu_button_clicked_cb(GtkToolButton *tool_button, #undef NEW_BUTTON static GtkWidget * -navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) +navigation_toolbar_new(MqTabChrome *chrome, const gchar *uri) { GtkToolbar *navigation_toolbar; GtkToolItem *back_forward_tool_item; @@ -452,7 +452,7 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) } MqTabChrome * -mq_tab_chrome_new(gchar *uri) +mq_tab_chrome_new(const gchar *uri) { MqTabChrome *chrome; diff --git a/src/tab-chrome.h b/src/tab-chrome.h index 01e75f1..caa5a66 100644 --- a/src/tab-chrome.h +++ b/src/tab-chrome.h @@ -46,7 +46,7 @@ struct MqTabChrome { }; MqTabChrome * -mq_tab_chrome_new(gchar *uri); +mq_tab_chrome_new(const gchar *uri); GtkWidget * mq_tab_chrome_get_container(MqTabChrome *chrome); @@ -297,7 +297,7 @@ title_cb(WebKitWebView __attribute__((unused)) *web_view, } static MqTab * -init_non_root(gchar *uri) +init_non_root(const gchar *uri) { MqTab *tab; @@ -329,7 +329,7 @@ init_non_root(gchar *uri) } MqTab * -mq_tab_new(gchar *uri, MqTab *source) +mq_tab_new(const gchar *uri, MqTab *source) { MqTab *tab; @@ -347,7 +347,7 @@ mq_tab_new(gchar *uri, MqTab *source) } MqTab * -mq_tab_new_relative(gchar *uri, MqTab *source) +mq_tab_new_relative(const gchar *uri, MqTab *source) { MqTab *tab; @@ -54,10 +54,10 @@ struct MqTab { }; MqTab * -mq_tab_new(gchar *uri, MqTab *source); +mq_tab_new(const gchar *uri, MqTab *source); MqTab * -mq_tab_new_relative(gchar *uri, MqTab *source); +mq_tab_new_relative(const gchar *uri, MqTab *source); MqTab * mq_tab_new_root(MqWindow *window); |