[gtk+] entry: 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+] entry: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 19:24:03 +0000 (UTC)
commit a0fd344217ff72636f5e0d04fe97aab66d068c20
Author: Rui Matos <tiagomatos gmail com>
Date: Sat Dec 17 19:27:58 2011 +0000
entry: Stop setting state flags on the style context for drawing
gtk/gtkentry.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index ef23f3e..d0c2372 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3564,15 +3564,10 @@ gtk_entry_draw (GtkWidget *widget,
{
GtkEntry *entry = GTK_ENTRY (widget);
GtkStyleContext *context;
- GtkStateFlags state;
GtkEntryPrivate *priv = entry->priv;
int i;
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
-
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, state);
/* Draw entry_bg, shadow, progress and focus */
gtk_entry_draw_frame (widget, context, cr);
@@ -3604,8 +3599,6 @@ gtk_entry_draw (GtkWidget *widget,
draw_icon (widget, cr, i);
}
- gtk_style_context_restore (context);
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]