summaryrefslogtreecommitdiff
path: root/src/xfdesktop-icon-view.c
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2017-04-19 14:53:25 +0300
committerEric Koegel <eric.koegel@gmail.com>2017-04-19 18:45:58 +0300
commit33a766247421244353a05281eff36966a9265a47 (patch)
tree82a0565e3816aad50360d3c868b94aefb3b5c7f7 /src/xfdesktop-icon-view.c
parentee153dcd3e1886ea201f223aa4cb81f75bee3112 (diff)
downloadxfdesktop-33a766247421244353a05281eff36966a9265a47.tar.gz
Remove the style class when finished with them
Diffstat (limited to 'src/xfdesktop-icon-view.c')
-rw-r--r--src/xfdesktop-icon-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index a196f31c..a2227622 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);
}