aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorAlexandre Mazari <scaroo@gmail.com>2011-07-30 12:57:51 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2011-07-30 13:10:17 +0800
commitd6f43136341159cccde9f707f2a493c109ec4e85 (patch)
treef9cd5ac4c6b6ffdd08f3404e90236c8b13c609a1 /embed
parentf4c6a2f079f5b24c067f2b656a8a4f808ec4533c (diff)
downloadgsoc2013-epiphany-d6f43136341159cccde9f707f2a493c109ec4e85.tar.gz
gsoc2013-epiphany-d6f43136341159cccde9f707f2a493c109ec4e85.tar.zst
gsoc2013-epiphany-d6f43136341159cccde9f707f2a493c109ec4e85.zip
e-window: use a css file for widget styling
Replace local styling (used for the tab close button and embed's status frame) by a global css sheet loaded at window construction. This allows tweaking style properties without rebuilding. The css file is installed in $(pkgdatadir)/epiphany.css. Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com> Bug #644805
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index d5a63a5a3..623c659e8 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -497,9 +497,6 @@ ephy_embed_constructed (GObject *object)
GtkWidget *overlay;
EphyOverlayEscapingChild *escaping_child;
GtkWidget *frame;
- GtkCssProvider *provider;
- GtkStyleContext *context;
- GError *error = NULL;
/* Skeleton */
web_view = WEBKIT_WEB_VIEW (ephy_web_view_new ());
@@ -510,18 +507,6 @@ ephy_embed_constructed (GObject *object)
priv->statusbar_label = gtk_label_new (NULL);
frame = gtk_frame_new (NULL);
gtk_widget_set_name (frame, "ephy-status-frame");
- provider = gtk_css_provider_new ();
- gtk_css_provider_load_from_data (provider,
- "#ephy-status-frame { border-style: solid; border-width: 1; padding: 4; }",
- -1, &error);
- if (error == NULL) {
- context = gtk_widget_get_style_context (frame);
- gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- } else
- g_error_free (error);
-
- g_object_unref (provider);
gtk_widget_show (frame);