[gtk+] iconview: Stop setting state flags on the style context for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconview: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 19:24:28 +0000 (UTC)
commit ffd5126a42697faec74eded61c72ff13221a21f0
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Dec 19 14:03:17 2011 +0000
iconview: Stop setting state flags on the style context for drawing
gtk/gtkiconview.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 828f1c5..df5004e 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -1502,11 +1502,9 @@ gtk_icon_view_draw (GtkWidget *widget,
dest_pos != GTK_ICON_VIEW_NO_DROP)
{
GtkStyleContext *context;
- GtkStateFlags state;
GdkRectangle rect = { 0 };
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
switch (dest_pos)
{
@@ -1540,7 +1538,6 @@ gtk_icon_view_draw (GtkWidget *widget,
break;
}
- gtk_style_context_set_state (context, state);
gtk_render_focus (context, cr,
rect.x, rect.y,
rect.width, rect.height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]