gtkplacesview: unset entry_pulse_timeout_id before removing it
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 19 Apr 2018 07:46:40 +0000 (02:46 -0500)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 19 Apr 2018 07:59:43 +0000 (02:59 -0500)
Fixes a warning on widget finalize, when trying to remove an invalid
source.

gtk/gtkplacesview.c

index c4323748ff4cac57911d49bbbf2fab25aa78c13a..d1ce605eb1c35b35a59fa5981df04c2189248fe6 100644 (file)
@@ -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;
     }