diff options
author | Vinicius Depizzol <vdepizzol@gmail.com> | 2011-07-30 14:26:12 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2011-09-05 12:46:51 +0800 |
commit | bd9610ccf02ee4122f10f770b36b7c3cbd183a76 (patch) | |
tree | 2fadfe5d698d19fdc90ccb62ef0f1c3f35a22fb5 /embed/ephy-web-view.c | |
parent | 9dd70dcb02bafc7f2d54e148c0f68c9be10d07be (diff) | |
download | gsoc2013-epiphany-bd9610ccf02ee4122f10f770b36b7c3cbd183a76.tar.gz gsoc2013-epiphany-bd9610ccf02ee4122f10f770b36b7c3cbd183a76.tar.zst gsoc2013-epiphany-bd9610ccf02ee4122f10f770b36b7c3cbd183a76.zip |
e-web-view: fix error pages for RTL locales
Remove hardcoded directions in the CSS definitions and make them simpler.
Bug #314205
Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com>
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r-- | embed/ephy-web-view.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 7dbf2f595..798946c3e 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2033,9 +2033,10 @@ ephy_web_view_load_error_page (EphyWebView *view, ephy_web_view_set_title (view, page_title); _ephy_web_view_set_icon_address (view, NULL); - g_string_printf (html, template, lang, lang, + g_string_printf (html, template, + lang, lang, + ((gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) ? "rtl" : "ltr"), page_title, - gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL ? "rtl" : "ltr", uri, image_data, msg_title, msg, button_label); |