[gtk+] entry: Use correct state when computing icon padding
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] entry: Use correct state when computing icon padding
- Date: Wed, 26 Nov 2014 12:54:55 +0000 (UTC)
commit 9b970d5f22dfa7e917ff5253630331f6eb536d98
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 25 21:57:58 2014 +0100
entry: Use correct state when computing icon padding
gtk/gtkentry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 7f334ba..4f08c91 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -2840,8 +2840,8 @@ get_icon_width (GtkEntry *entry,
return 0;
context = gtk_widget_get_style_context (GTK_WIDGET (entry));
- state = gtk_style_context_get_state (context);
gtk_entry_prepare_context_for_icon (entry, context, icon_pos);
+ state = gtk_style_context_get_state (context);
gtk_style_context_get_padding (context, state, &padding);
_gtk_icon_helper_get_size (icon_info->icon_helper, context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]