diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-06-28 17:18:04 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-06-28 19:05:07 +0200 |
commit | e5eccfaefca76388f0fc96537ec5b678d5c28e7d (patch) | |
tree | 690c75f47e7deb3ef3a196cd6b1b8447d9f51622 | |
parent | d36ca035e24ac97c84058ed9f9a9fdabd77add59 (diff) |
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
-rw-r--r-- | data/gtk-style.css | 1 | ||||
-rw-r--r-- | src/collection-view.vala | 1 | ||||
-rw-r--r-- | 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); |