[PATCH rhel7/master] Change the CSS class name of the sidebar (#1067049).

Chris Lumens clumens at redhat.com
Wed Feb 19 15:33:17 UTC 2014


GTK appears to use the "sidebar" class for file chooser dialogs, so we need to
not or file chooser dialogs will get a branded background.
---
 data/anaconda-gtk.css          | 4 ++--
 widgets/src/HubWindow.c        | 4 ++--
 widgets/src/StandaloneWindow.c | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/data/anaconda-gtk.css b/data/anaconda-gtk.css
index 04e79bf..ec018a5 100644
--- a/data/anaconda-gtk.css
+++ b/data/anaconda-gtk.css
@@ -5,7 +5,7 @@
 
 /* logo and sidebar classes for RHEL */
 
-.sidebar {
+.logo-sidebar {
     background-image: url('/usr/share/anaconda/pixmaps/sidebar-bg.png');
     background-color: @redhat;
     background-repeat: no-repeat;
@@ -31,7 +31,7 @@ AnacondaSpokeWindow #layout-indicator {
 
 /* swap these into logo & sidebar classes for Fedora */
 /*
-.logo{
+.logo-sidebar {
     background-image: url('/usr/share/anaconda/pixmaps/logo.png');
     background-position: 50% 20px;
     background-repeat: no-repeat;
diff --git a/widgets/src/HubWindow.c b/widgets/src/HubWindow.c
index 486851e..6756a31 100644
--- a/widgets/src/HubWindow.c
+++ b/widgets/src/HubWindow.c
@@ -106,9 +106,9 @@ static gboolean anaconda_hub_window_on_draw(GtkWidget *win, cairo_t *cr) {
     GtkStyleContext * context = gtk_widget_get_style_context(win);
     gtk_style_context_save (context);
 
-    gtk_style_context_add_class(context, "sidebar");
+    gtk_style_context_add_class(context, "logo-sidebar");
     gtk_render_background(context, cr, 0, 0, get_sidebar_width(win), get_sidebar_height(win));
-    gtk_style_context_remove_class(context, "sidebar");
+    gtk_style_context_remove_class(context, "logo-sidebar");
 
     gtk_style_context_add_class(context, "logo");
     gtk_render_background(context, cr, 0, 0, get_sidebar_width(win), get_sidebar_height(win));
diff --git a/widgets/src/StandaloneWindow.c b/widgets/src/StandaloneWindow.c
index 3fe24c9..cdc77d1 100644
--- a/widgets/src/StandaloneWindow.c
+++ b/widgets/src/StandaloneWindow.c
@@ -94,9 +94,9 @@ static gboolean anaconda_standalone_window_on_draw(GtkWidget *win, cairo_t *cr)
     GtkStyleContext * context = gtk_widget_get_style_context(win);
     gtk_style_context_save (context);
 
-    gtk_style_context_add_class(context, "sidebar");
+    gtk_style_context_add_class(context, "logo-sidebar");
     gtk_render_background(context, cr, 0, 0, get_sidebar_width(win), get_sidebar_height(win));
-    gtk_style_context_remove_class(context, "sidebar");
+    gtk_style_context_remove_class(context, "logo-sidebar");
 
     gtk_style_context_add_class(context, "logo");
     gtk_render_background(context, cr, 0, 0, get_sidebar_width(win), get_sidebar_height(win));
-- 
1.8.3.1



More information about the anaconda-patches mailing list