diff options
author | Benjamin Otte <otte@redhat.com> | 2014-11-25 21:57:58 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-11-26 13:53:57 +0100 |
commit | 9b970d5f22dfa7e917ff5253630331f6eb536d98 (patch) | |
tree | c2dc8875bd1294020eaf41a4b29a90d51594f198 | |
parent | cbb2938587dc335de898d9b2347d072a51c408ee (diff) | |
download | gtk+-9b970d5f22dfa7e917ff5253630331f6eb536d98.tar.gz |
entry: Use correct state when computing icon padding
-rw-r--r-- | gtk/gtkentry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 7f334ba299..4f08c91a67 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, |