[epiphany] embed: remove custom CSS styling for the overlay progressbar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] embed: remove custom CSS styling for the overlay progressbar
- Date: Wed, 23 May 2012 16:58:38 +0000 (UTC)
commit 02e9b253ea8d127c766172f029379073cddb8f91
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed May 23 12:16:38 2012 -0400
embed: remove custom CSS styling for the overlay progressbar
Now that the overlay progressbar is styled by the theme, we can just
set the OSD style class on the overlay to get the same effect.
https://bugzilla.gnome.org/show_bug.cgi?id=676660
embed/ephy-embed.c | 4 ++--
src/resources/epiphany.css | 29 -----------------------------
2 files changed, 2 insertions(+), 31 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index f3ac543..d354772 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -619,10 +619,11 @@ ephy_embed_constructed (GObject *object)
web_view = WEBKIT_WEB_VIEW (ephy_web_view_new ());
scrolled_window = GTK_WIDGET (priv->scrolled_window);
overlay = gtk_overlay_new ();
+ gtk_style_context_add_class (gtk_widget_get_style_context (overlay),
+ GTK_STYLE_CLASS_OSD);
gtk_widget_add_events (overlay,
GDK_ENTER_NOTIFY_MASK |
GDK_LEAVE_NOTIFY_MASK);
- gtk_widget_set_name (overlay, "ephy-overlay");
gtk_container_add (GTK_CONTAINER (overlay), scrolled_window);
/* statusbar is hidden by default */
@@ -634,7 +635,6 @@ ephy_embed_constructed (GObject *object)
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->floating_bar);
priv->progress = gtk_progress_bar_new ();
- gtk_widget_set_name (priv->progress, "ephy-progress-bar");
gtk_widget_set_halign (priv->progress, GTK_ALIGN_FILL);
gtk_widget_set_valign (priv->progress, GTK_ALIGN_START);
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->progress);
diff --git a/src/resources/epiphany.css b/src/resources/epiphany.css
index b3b9757..546eeb9 100644
--- a/src/resources/epiphany.css
+++ b/src/resources/epiphany.css
@@ -18,32 +18,3 @@
padding-left: 0;
padding-right: 0;
}
-
-#ephy-progress-bar {
- -GtkProgressBar-xspacing: 0;
- -GtkProgressBar-yspacing: 3px;
- -GtkProgressBar-min-horizontal-bar-height: 3px;
- padding: 0;
-}
-
-.progressbar#ephy-progress-bar {
- border-style: none;
- background-color: @theme_selected_bg_color;
- background-image: none;
- border-radius: 0;
- -adwaita-progressbar-pattern: none;
-}
-
-GtkProgressBar#ephy-progress-bar.trough {
- padding: 0;
- border-image: none;
- border-style: none;
- border-width: 0;
- background-image: none;
- background-color: transparent;
- border-radius: 0;
-}
-
-#ephy-overlay {
- background-color: rgba(0,0,0,0);
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]