[gnome-boxes] Fix not showing selection in file selector
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Fix not showing selection in file selector
- Date: Thu, 28 Jun 2012 17:04:54 +0000 (UTC)
commit e5eccfaefca76388f0fc96537ec5b678d5c28e7d
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 28 17:18:04 2012 +0200
Fix not showing selection in file selector
We were using a way-to-broad CSS selector like ".view" which
also affected the file selector. Remove this and instead apply
the (already also matched) boxes-bg style class on the .view
places that needed to match.
https://bugzilla.gnome.org/show_bug.cgi?id=673850
data/gtk-style.css | 1 -
src/collection-view.vala | 1 +
src/properties.vala | 1 +
3 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index c63a0ca..4338009 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -43,7 +43,6 @@ BoxesMiniGraph {
font-weight: bold;
}
-.view,
GtkClutterOffscreen,
.boxes-bg {
background-color: transparent;
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 2482c02..968112d 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -231,6 +231,7 @@ private class Boxes.CollectionView: Boxes.UI {
model.set_sort_column_id (Gtk.SortColumn.DEFAULT, Gtk.SortType.ASCENDING);
icon_view = new Gtk.IconView.with_model (model);
+ icon_view.get_style_context ().add_class ("boxes-bg");
icon_view.button_press_event.connect ((event) => {
if (App.app.selection_mode)
event.state |= icon_view.get_modifier_mask (Gdk.ModifierIntent.MODIFY_SELECTION);
diff --git a/src/properties.vala b/src/properties.vala
index f0987e4..7907955 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -165,6 +165,7 @@ private class Boxes.Properties: Boxes.UI {
var vbox = App.app.sidebar.notebook.get_nth_page (Boxes.SidebarPage.PROPERTIES) as Gtk.VBox;
tree_view = new Gtk.TreeView ();
+ tree_view.get_style_context ().add_class ("boxes-bg");
var selection = tree_view.get_selection ();
selection.set_mode (Gtk.SelectionMode.BROWSE);
tree_view_activate_on_single_click (tree_view, true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]