[gtk+/places-sidebar: 212/212] GtkTreeView: Add some CSS for the 'dnd' style class so drawing the drag-dest-row works



commit 0d95705bd52b32695e6e04240f273d1eb62264e6
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Feb 27 13:46:49 2013 -0600

    GtkTreeView: Add some CSS for the 'dnd' style class so drawing the drag-dest-row works
    
    The default CSS didn't have anything for GtkTreeView's 'dnd' style class.  So,
    the call to gtk_render_frame() to draw the highlight frame for the drag-dest-row
    was getting a border-width of 0, and nothing was drawn as a result.
    
    Now we just copy the default from Adwaita, but make the border-radius 0, to make it
    square like the rest of the Raleigh theme...

 gtk/gtk-default.css |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtk-default.css b/gtk/gtk-default.css
index d084828..840438b 100644
--- a/gtk/gtk-default.css
+++ b/gtk/gtk-default.css
@@ -38,6 +38,13 @@ GtkTreeView.view.expander:selected:hover {
   color: @text_color;
 }
 
+GtkTreeView.dnd {
+    border-color: @internal_element_color;
+    border-radius: 0;
+    border-width: 1px;
+    border-style: solid;
+}
+
 *:insensitive {
   border-color: shade (@bg_color, 0.7);
   background-color: shade (@bg_color, 0.9);


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