From 8c3f04e75448b9d5f5fa3decfe66d811306142cf Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 8 Dec 2014 06:39:19 -0500 Subject: [PATCH] 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. --- gtk/gtkentry.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index cf9ee67903..03fb6d7d74 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -10617,12 +10617,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 @@ -10641,7 +10644,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); }