diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-02 22:30:45 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-02 22:30:45 +0000 |
commit | c14ddad660d3c07f8dbdc8f8db902e5767821d9c (patch) | |
tree | 3cc9e9b437b9409185dbde7f9dce236c5b31b18e /gtk | |
parent | 03abea12a76db9be29c6a56e453cadebc05983d6 (diff) | |
download | netsurf-c14ddad660d3c07f8dbdc8f8db902e5767821d9c.tar.gz netsurf-c14ddad660d3c07f8dbdc8f8db902e5767821d9c.tar.bz2 |
change url setting api to take an nsurl instead of a text string
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/scaffolding.c | 4 | ||||
-rw-r--r-- | gtk/scaffolding.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gtk/scaffolding.c b/gtk/scaffolding.c index e5da52be4..ce3dae962 100644 --- a/gtk/scaffolding.c +++ b/gtk/scaffolding.c @@ -2291,13 +2291,13 @@ void gui_window_set_title(struct gui_window *gw, const char *title) } -nserror gui_window_set_url(struct gui_window *gw, const char *url) +nserror gui_window_set_url(struct gui_window *gw, nsurl *url) { struct nsgtk_scaffolding *g; g = nsgtk_get_scaffold(gw); if (g->top_level == gw) { - gtk_entry_set_text(GTK_ENTRY(g->url_bar), url); + gtk_entry_set_text(GTK_ENTRY(g->url_bar), nsurl_access(url)); gtk_editable_set_position(GTK_EDITABLE(g->url_bar), -1); } return NSERROR_OK; diff --git a/gtk/scaffolding.h b/gtk/scaffolding.h index 07433bffa..7d21a68d7 100644 --- a/gtk/scaffolding.h +++ b/gtk/scaffolding.h @@ -26,6 +26,7 @@ struct bitmap; struct hlcache_handle; struct gui_window; struct gui_search_web_table; +struct nsurl; extern struct gui_search_web_table *nsgtk_search_web_table; @@ -235,7 +236,7 @@ nserror nsgtk_scaffolding_new_tab(struct gui_window *gw); /* core acessors */ void gui_window_set_title(struct gui_window *g, const char *title); -nserror gui_window_set_url(struct gui_window *g, const char *url); +nserror gui_window_set_url(struct gui_window *g, struct nsurl *url); void gui_window_start_throbber(struct gui_window *g); void gui_window_stop_throbber(struct gui_window *g); |