[gtk: 1/3] gtkplacesview: unset entry_pulse_timeout_id before removing it



commit f9452957cd11adc467203fa4d77d4cc2e5312cbf
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Thu Apr 19 02:46:40 2018 -0500

    gtkplacesview: unset entry_pulse_timeout_id before removing it
    
    Fixes a warning on widget finalize, when trying to remove an invalid
    source.

 gtk/gtkplacesview.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index c4323748ff..d1ce605eb1 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1385,6 +1385,7 @@ pulse_entry_cb (gpointer user_data)
     {
       gtk_entry_set_progress_pulse_step (GTK_ENTRY (priv->address_entry), 0.0);
       gtk_entry_set_progress_fraction (GTK_ENTRY (priv->address_entry), 0.0);
+      priv->entry_pulse_timeout_id = 0;
 
       return G_SOURCE_REMOVE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]