[Xfce4-commits] [xfce/xfdesktop] 06/16: Add the view class to the icon view

noreply at xfce.org noreply at xfce.org
Wed Apr 19 17:46:23 CEST 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit fa1877e2bc876e8e43b8a40328f8c5f670029586
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Wed Apr 19 08:02:20 2017 +0300

    Add the view class to the icon view
    
    And add a CSS Node name of XfdesktopIconView so it doesn't just
    appear as 'widget'
---
 src/xfdesktop-icon-view.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 819327a..b30b055 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -709,11 +709,15 @@ xfdesktop_icon_view_class_init(XfdesktopIconViewClass *klass)
                                          GTK_MOVEMENT_VISUAL_POSITIONS, -1);
 
     xfdesktop_cell_highlight_quark = g_quark_from_static_string("xfdesktop-icon-view-cell-highlight");
+
+    gtk_widget_class_set_css_name (widget_class, "XfdesktopIconView");
 }
 
 static void
 xfdesktop_icon_view_init(XfdesktopIconView *icon_view)
 {
+    GtkStyleContext *context;
+
     icon_view->priv = G_TYPE_INSTANCE_GET_PRIVATE(icon_view,
                                                   XFDESKTOP_TYPE_ICON_VIEW,
                                                   XfdesktopIconViewPrivate);
@@ -741,6 +745,9 @@ xfdesktop_icon_view_init(XfdesktopIconView *icon_view)
     
     gtk_widget_set_has_window(GTK_WIDGET(icon_view), FALSE);
     gtk_widget_set_can_focus(GTK_WIDGET(icon_view), FALSE);
+
+    context = gtk_widget_get_style_context(GTK_WIDGET(icon_view));
+    gtk_style_context_add_class(context, GTK_STYLE_CLASS_VIEW);
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list