[gnome-boxes] Add line between topbar and icon view



commit 720f82c057c2ff115544a7e542add03779d1ad6a
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Oct 1 10:52:14 2012 +0200

    Add line between topbar and icon view
    
    This adds a line between the top bar and the icon view, similar
    to what gnome-documents does it. In fact, it uses the same style
    class documents-scrolledwin that GdMainView uses for this, which
    we don't get due to not using GdMainView.
    
    In the normal case this doesn't really change anything in boxes, however
    in selection mode we need this line in order to separate the
    toolbar from the icon view as they have the same color there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674671

 src/collection-view.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index a07ee8c..abe943a 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -383,6 +383,8 @@ private class Boxes.CollectionView: Boxes.UI {
         //        scrolled_window.hscrollbar_policy = Gtk.PolicyType.NEVER;
         scrolled_window.add (icon_view);
         scrolled_window.show_all ();
+        scrolled_window.set_shadow_type (Gtk.ShadowType.IN);
+        scrolled_window.get_style_context ().add_class ("documents-scrolledwin");
 
         gtkactor = new GtkClutter.Actor.with_contents (scrolled_window);
         gtkactor.get_widget ().get_style_context ().add_class ("boxes-bg");



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