webkit_web_frame_load_alternate_string (web_frame,
result, res_root, uri);
g_free (res_root);
+ g_free (stock_root);
g_free (result);
return TRUE;
gchar* speed_dial_html;
gchar* body_fname;
gchar* location_entry_search;
+ gchar* stock_root;
katze_assign (view->uri, g_strdup (""));
res_server = sokoke_get_res_server ();
port = soup_server_get_port (res_server);
res_root = g_strdup_printf ("http://localhost:%d/res", port);
+ stock_root = g_strdup_printf ("http://localhost:%d/stock", port);
body_fname = g_build_filename (sokoke_set_config_dir (NULL),
"speeddial-body.html", NULL);
data = sokoke_replace_variables (speed_dial_html,
"{res}", res_root,
+ "{stock}", stock_root,
"{title}", _("Blank page"),
"{search_uri}", location_entry_search,
"{search_title}", _("Search"),
#endif
g_free (res_root);
+ g_free (stock_root);
g_free (data);
g_free (speed_dial_html);
g_free (speed_dial_head);