The bubble_timeout_id was reset only on some special case.
And so warnings were shown when the source is being tried
to be removed with the already removed id.
Fix this by unconditionally resetting the id on start of the function.
GtkWidget *box;
GtkWidget *toolbar;
+ priv->selection_bubble_timeout_id = 0;
has_selection = gtk_text_buffer_get_selection_bounds (get_buffer (text_view),
&sel_start, &sel_end);
gtk_text_buffer_get_bounds (get_buffer (text_view), &start, &end);
gtk_text_iter_equal (&end, &sel_end);
if (!priv->editable && !has_selection)
- {
- priv->selection_bubble_timeout_id = 0;
- return G_SOURCE_REMOVE;
- }
+ return G_SOURCE_REMOVE;
if (priv->selection_bubble)
gtk_widget_destroy (priv->selection_bubble);