[bijiben] editor: do not set css inside _init_
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] editor: do not set css inside _init_
- Date: Sun, 24 Aug 2014 13:13:26 +0000 (UTC)
commit 9744c2ac7c587223b7fc1f15b6c26aea7b8c065d
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sun Aug 24 14:56:50 2014 +0200
editor: do not set css inside _init_
src/libbiji/editor/biji-webkit-editor.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/libbiji/editor/biji-webkit-editor.c b/src/libbiji/editor/biji-webkit-editor.c
index 9a7422b..16de9b5 100644
--- a/src/libbiji/editor/biji-webkit-editor.c
+++ b/src/libbiji/editor/biji-webkit-editor.c
@@ -198,7 +198,6 @@ biji_webkit_editor_init (BijiWebkitEditor *self)
{
WebKitWebView *view = WEBKIT_WEB_VIEW (self);
BijiWebkitEditorPrivate *priv;
- gchar *css_path;
priv = G_TYPE_INSTANCE_GET_PRIVATE (self, BIJI_TYPE_WEBKIT_EDITOR, BijiWebkitEditorPrivate);
self->priv = priv;
@@ -210,20 +209,14 @@ biji_webkit_editor_init (BijiWebkitEditor *self)
webkit_web_view_set_transparent (view, TRUE);
priv->settings = webkit_web_view_get_settings (view);
- css_path = g_build_filename ("file://",
- DATADIR, "bijiben",
- "Default.css",NULL);
g_object_set (G_OBJECT(priv->settings),
"enable-plugins", FALSE,
"enable-file-access-from-file-uris", TRUE,
- "user-stylesheet-uri", css_path,
"enable-spell-checking", TRUE,
"tab-key-cycles-through-elements", FALSE,
NULL);
- g_free (css_path);
-
priv->spell_check = webkit_get_text_checker ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]