Build correct logo path for not found error page

This commit is contained in:
Paweł Forysiuk 2011-04-30 12:13:07 +02:00 committed by Christian Dywan
parent d8a3ef40f6
commit 7dec022471

View file

@ -1528,17 +1528,16 @@ webkit_web_frame_load_done_cb (WebKitWebFrame* web_frame,
gboolean success, gboolean success,
MidoriView* view) MidoriView* view)
{ {
gchar* title;
gchar* data;
gchar* logo_path;
gchar* logo_uri;
if (!success) if (!success)
{ {
gchar* title;
gchar* data;
gchar* logo_path;
gchar* logo_uri;
/* i18n: The title of the 404 - Not found error page */ /* i18n: The title of the 404 - Not found error page */
title = g_strdup_printf (_("Not found - %s"), view->uri); title = g_strdup_printf (_("Not found - %s"), view->uri);
katze_assign (view->title, title); katze_assign (view->title, title);
logo_path = sokoke_find_data_filename ("midori/logo-shade.png"); logo_path = sokoke_find_data_filename ("midori/res/logo-shade.png");
logo_uri = g_filename_to_uri (logo_path, NULL, NULL); logo_uri = g_filename_to_uri (logo_path, NULL, NULL);
g_free (logo_path); g_free (logo_path);
data = g_strdup_printf ( data = g_strdup_printf (