[Xfce4-commits] [xfce/xfdesktop] 12/16: Remove the style class when finished with them

noreply at xfce.org noreply at xfce.org
Wed Apr 19 17:46:29 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 33a766247421244353a05281eff36966a9265a47
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Wed Apr 19 14:53:25 2017 +0300

    Remove the style class when finished with them
---
 src/xfdesktop-icon-view.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index a196f31..a222762 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -1845,6 +1845,8 @@ xfdesktop_icon_view_style_updated(GtkWidget *widget)
 {
     XfdesktopIconView *icon_view = XFDESKTOP_ICON_VIEW(widget);
 
+    DBG("entering");
+
     gtk_widget_style_get(widget,
                          "cell-spacing", &icon_view->priv->cell_spacing,
                          "cell-padding", &icon_view->priv->cell_padding,
@@ -2076,6 +2078,7 @@ xfdesktop_icon_view_draw(GtkWidget *widget,
             cairo_restore(cr);
         }
 
+        gtk_style_context_remove_class(context, GTK_STYLE_CLASS_RUBBERBAND);
         gtk_style_context_restore(context);
     }
 
@@ -2884,6 +2887,7 @@ xfdesktop_icon_view_draw_text(GtkWidget *icon_view, cairo_t *cr,
     gtk_render_background(context, cr, box_area->x, box_area->y, box_area->width, box_area->height);
     gtk_render_layout(context, cr, text_area->x, text_area->y, playout);
 
+    gtk_style_context_remove_class(context, GTK_STYLE_CLASS_LABEL);
     gtk_style_context_restore(context);
     cairo_restore(cr);
 }

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


More information about the Xfce4-commits mailing list