diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-12-08 06:39:19 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-12-11 09:21:07 -0500 |
commit | 812109cc3f56ecf849af4a8901c6a27393471049 (patch) | |
tree | 73517734e6f562aaac25d88143e17d067f577d4c | |
parent | 4621142e0cf6bede6262695d3de020c3ffc93e20 (diff) | |
download | gtk+-812109cc3f56ecf849af4a8901c6a27393471049.tar.gz |
GtkEntry: Refresh when activity ends
We need to queue a redraw when pulse mode is ended by
setting a fraction. Noticed in gtk3-demo's search entry demo.
-rw-r--r-- | gtk/gtkentry.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 5e393a76d9..7c2c8585de 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -10583,12 +10583,15 @@ gtk_entry_set_progress_fraction (GtkEntry *entry, gdouble old_fraction; gint x, y, width, height; gint old_x, old_y, old_width, old_height; + gboolean was_pulse; g_return_if_fail (GTK_IS_ENTRY (entry)); widget = GTK_WIDGET (entry); private = entry->priv; + was_pulse = private->progress_pulse_mode; + if (private->progress_pulse_mode) old_fraction = -1; else @@ -10607,7 +10610,8 @@ gtk_entry_set_progress_fraction (GtkEntry *entry, { get_progress_area (widget, &x, &y, &width, &height); - if ((x != old_x) || (y != old_y) || (width != old_width) || (height != old_height)) + if (was_pulse || + x != old_x || y != old_y || width != old_width || height != old_height) gtk_widget_queue_draw (widget); } |