[gnome-boxes] gtk-style: Replace unneeded classes by .content-bg
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] gtk-style: Replace unneeded classes by .content-bg
- Date: Mon, 18 Aug 2014 18:10:03 +0000 (UTC)
commit 795f70f78d06e5f0696ab454ddf9d92d8704c83f
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Mon Aug 18 12:13:22 2014 +0200
gtk-style: Replace unneeded classes by .content-bg
The .content-bg class does exactly the same as these classes so we can
use this everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=731952
data/gtk-style.css | 15 ---------------
data/ui/app-window.ui | 2 +-
data/ui/empty-boxes.ui | 4 ++--
src/collection-view.vala | 2 +-
src/empty-boxes.vala | 2 +-
src/properties.vala | 2 +-
6 files changed, 6 insertions(+), 21 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index e40c9b7..b573292 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -61,21 +61,11 @@ BoxesMiniGraph {
font-weight: bold;
}
-.boxes-icon-view {
- background-image: url("icons/boxes-dark.png");
- border-image-repeat: stretch;
-}
-
.content-bg {
background-image: url("icons/boxes-dark.png");
border-image-repeat: stretch;
}
-.empty-boxes {
- background-image: url("icons/boxes-dark.png");
- border-image-repeat: stretch;
-}
-
.boxes-wizard-label {
color: @theme_fg_color;
}
@@ -178,8 +168,3 @@ BoxesMiniGraph {
.boxes-empty-details-label {
color: #555753;
}
-
-.properties {
- background-image: url("icons/boxes-dark.png");
- border-image-repeat: stretch;
-}
diff --git a/data/ui/app-window.ui b/data/ui/app-window.ui
index 059df8b..ab82ab1 100644
--- a/data/ui/app-window.ui
+++ b/data/ui/app-window.ui
@@ -162,7 +162,7 @@
<property name="halign">fill</property>
<property name="valign">fill</property>
<style>
- <class name="empty-boxes"/>
+ <class name="content-bg"/>
</style>
<child>
diff --git a/data/ui/empty-boxes.ui b/data/ui/empty-boxes.ui
index 804a5b3..785aa1c 100644
--- a/data/ui/empty-boxes.ui
+++ b/data/ui/empty-boxes.ui
@@ -21,7 +21,7 @@
<property name="halign">fill</property>
<property name="valign">fill</property>
<style>
- <class name="empty-boxes"/>
+ <class name="content-bg"/>
</style>
<child>
@@ -47,7 +47,7 @@
<property name="halign">fill</property>
<property name="valign">fill</property>
<style>
- <class name="empty-boxes"/>
+ <class name="content-bg"/>
</style>
<child>
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 5b7c6f2..f6b8321 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -271,7 +271,7 @@ private class Boxes.CollectionView: Gd.MainView, Boxes.UI {
set_view_type (Gd.MainViewType.ICON);
set_model (model_filter);
- get_style_context ().add_class ("boxes-icon-view");
+ get_style_context ().add_class ("content-bg");
item_activated.connect ((view, id, path) => {
var item = get_item_for_path (path);
if (item is LibvirtMachine && (item as LibvirtMachine).importing)
diff --git a/src/empty-boxes.vala b/src/empty-boxes.vala
index ab7a3d5..a7bdfcd 100644
--- a/src/empty-boxes.vala
+++ b/src/empty-boxes.vala
@@ -34,7 +34,7 @@ private class Boxes.EmptyBoxes : Gtk.Stack, Boxes.UI {
return;
if (visible)
- window.below_bin.set_visible_child_name ("empty-boxes");
+ window.below_bin.set_visible_child_name ("content-bg");
else
window.below_bin.set_visible_child_name ("collection-view");
}
diff --git a/src/properties.vala b/src/properties.vala
index 9a49d40..1eb5b40 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -58,7 +58,7 @@ private class Boxes.Properties: Gtk.Stack, Boxes.UI {
break;
}
- get_style_context ().add_class ("properties");
+ get_style_context ().add_class ("content-bg");
get_style_context ().add_class ("transparent-bg");
grid = new Gtk.Grid ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]