[gnome-boxes] Fix transparent topbar



commit 821a432a42b42a0cdff61421870637c558b64a58
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 29 12:11:32 2012 +0200

    Fix transparent topbar
    
    Instead of making all GtkClutterOffscreens transparent
    we specifically mark the ones that need to be transparent.
    This makes us not have a transparent topbar.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679121

 data/gtk-style.css       |    1 -
 src/collection-view.vala |    1 +
 src/properties.vala      |    1 +
 src/selectionbar.vala    |    1 +
 src/sidebar.vala         |    1 +
 src/wizard.vala          |    1 +
 6 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 27a0372..be651ca 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -43,7 +43,6 @@ BoxesMiniGraph {
     font-weight: bold;
 }
 
-GtkClutterOffscreen,
 .boxes-bg {
     background-color: transparent;
     background-image: none;
diff --git a/src/collection-view.vala b/src/collection-view.vala
index b42561e..866ebf7 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -283,6 +283,7 @@ private class Boxes.CollectionView: Boxes.UI {
         scrolled_window.show_all ();
 
         gtkactor = new GtkClutter.Actor.with_contents (scrolled_window);
+        gtkactor.get_widget ().get_style_context ().add_class ("boxes-bg");
         gtkactor.name = "collection-view";
     }
 }
diff --git a/src/properties.vala b/src/properties.vala
index 7907955..5ad1e01 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -133,6 +133,7 @@ private class Boxes.Properties: Boxes.UI {
         notebook.show_tabs = false;
         notebook.get_style_context ().add_class ("boxes-bg");
         gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+        gtk_actor.get_widget ().get_style_context ().add_class ("boxes-bg");
         gtk_actor.name = "properties";
         gtk_actor.opacity = 0;
 
diff --git a/src/selectionbar.vala b/src/selectionbar.vala
index eadceb3..3c59716 100644
--- a/src/selectionbar.vala
+++ b/src/selectionbar.vala
@@ -22,6 +22,7 @@ private class Boxes.Selectionbar: GLib.Object {
         bin.get_style_context ().add_class ("selectionbar");
 
         gtk_actor = new GtkClutter.Actor.with_contents (bin);
+        gtk_actor.get_widget ().get_style_context ().add_class ("boxes-bg");
         gtk_actor.opacity = 0;
 
         favorite_btn = new Gtk.ToggleToolButton ();
diff --git a/src/sidebar.vala b/src/sidebar.vala
index bbe1170..d4d9b53 100644
--- a/src/sidebar.vala
+++ b/src/sidebar.vala
@@ -84,6 +84,7 @@ private class Boxes.Sidebar: Boxes.UI {
 
         notebook = new Gtk.Notebook ();
         gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+        gtk_actor.get_widget ().get_style_context ().add_class ("boxes-bg");
         gtk_actor.name = "sidebar";
         bin_actor.add_child (gtk_actor);
         notebook.get_style_context ().add_class (Gtk.STYLE_CLASS_SIDEBAR);
diff --git a/src/wizard.vala b/src/wizard.vala
index 59a613e..1cbda8b 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -432,6 +432,7 @@ private class Boxes.Wizard: Boxes.UI {
         notebook.show_tabs = false;
         notebook.get_style_context ().add_class ("boxes-bg");
         gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+        gtk_actor.get_widget ().get_style_context ().add_class ("boxes-bg");
         gtk_actor.name = "wizard";
         gtk_actor.opacity = 0;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]