viking

webkit based web browser for Enlightenment
Log | Files | Refs | LICENSE

commit 3f9605ab1fb52c7e45a41006c53313e29add9c38
parent bca221a3770200ea2695ffeac9816ec29b60841c
Author: Kyle Milz <kmilz@ucalgary.ca>
Date:   Tue, 25 Sep 2012 09:31:09 -0600

make update_url() non static and use it in commands.c

Diffstat:
Mcommands.c | 2++
Mmain.c | 1-
Mmain.h | 1+
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/commands.c b/commands.c @@ -1459,11 +1459,13 @@ inspector(const Arg *arg, void *data) ewk_view_setting_enable_developer_extras_set(bd->view, EINA_TRUE); ewk_view_web_inspector_show(bd->view); bd->inspector_enabled = EINA_TRUE; + update_url(elm_web_uri_get(bd->web), data); } else { ewk_view_web_inspector_close(bd->view); bd->inspector_enabled = EINA_FALSE; ewk_view_setting_enable_developer_extras_set(bd->view, EINA_FALSE); + update_url(elm_web_uri_get(bd->web), data); } return EINA_TRUE; diff --git a/main.c b/main.c @@ -70,7 +70,6 @@ static WebKitWebView* webview_open_in_new_window_cb(WebKitWebView *webview, WebK /* functions */ static void ascii_bar(int total, int state, char *string); -static void update_url(const char *, void *); // static char *jsapi_ref_to_string(JSContextRef context, JSValueRef ref); // static void jsapi_evaluate_script(const gchar *script, gchar **value, gchar **message, void *data); static void set_widget_font_and_color(Evas_Object *widget, const char *font_str, const char *bg_color_str, const char *fg_color_str); diff --git a/main.h b/main.h @@ -75,6 +75,7 @@ struct dl { }; void update_state(void *); +void update_url(const char *, void *); Eina_Bool echo(const Arg *arg, void *); void buffer_current_set(Buffer_Data *td); Buffer_Data *buffer_add(App_Data *ad);