static gboolean finish_search (GtkButton *button) { show_find_button (); g_source_remove (search_progress_id); search_progress_id = 0; return FALSE; }
static gboolean finish_search (GtkButton *button) { show_find_button (); if (search_progress_id) { g_source_remove (search_progress_id); search_progress_id = 0; } return G_SOURCE_REMOVE; }