summaryrefslogtreecommitdiff
path: root/midori/midori-browser.c
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2012-07-06 01:36:20 +0200
committerChristian Dywan <christian@twotoasts.de>2012-07-06 01:36:20 +0200
commit5d3c00839f0f9e3e071a251c088530443516db2a (patch)
tree04f7139a712e0368bb68aeb5300fe493378e8083 /midori/midori-browser.c
parentf505ff9ca61b9e2a9a51c61679d3cf22d23f72ac (diff)
downloadmidori-5d3c00839f0f9e3e071a251c088530443516db2a.tar.gz
Enhance faq.css for use with Readable
See: https://bugs.launchpad.net/midori/+bug/743998
Diffstat (limited to 'midori/midori-browser.c')
-rw-r--r--midori/midori-browser.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 7fe60f65..e765cdec 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -3623,14 +3623,19 @@ _action_readable_activate (GtkAction* action,
if (!view)
return;
- filename = midori_app_find_res_filename ("readable.css");
+ filename = midori_app_find_res_filename ("faq.css");
stylesheet = NULL;
if (!g_file_get_contents (filename, &stylesheet, NULL, NULL))
{
+ katze_assign (filename, sokoke_find_data_filename ("doc/midori/faq.css", FALSE));
+ g_file_get_contents (filename, &stylesheet, NULL, NULL);
+ }
+ if (!(stylesheet && *stylesheet))
+ {
g_free (filename);
g_free (stylesheet);
midori_view_add_info_bar (MIDORI_VIEW (view), GTK_MESSAGE_ERROR,
- "Stylesheet readable.css not found", NULL, view,
+ "Stylesheet faq.css not found", NULL, view,
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL);
return;
}