forked from AuroraMiddleware/gtk
text: Fix selection bubble handling
Same fix as the previous commit.
This commit is contained in:
parent
67c82e8bd9
commit
f03c7c379a
@ -1804,7 +1804,7 @@ gtk_text_finalize (GObject *object)
|
|||||||
|
|
||||||
g_clear_object (&priv->cached_layout);
|
g_clear_object (&priv->cached_layout);
|
||||||
g_clear_object (&priv->im_context);
|
g_clear_object (&priv->im_context);
|
||||||
g_clear_pointer (&priv->selection_bubble, gtk_widget_destroy);
|
g_clear_pointer (&priv->selection_bubble, gtk_widget_unparent);
|
||||||
g_clear_pointer (&priv->magnifier_popover, gtk_widget_destroy);
|
g_clear_pointer (&priv->magnifier_popover, gtk_widget_destroy);
|
||||||
g_clear_object (&priv->text_handle);
|
g_clear_object (&priv->text_handle);
|
||||||
g_free (priv->im_module);
|
g_free (priv->im_module);
|
||||||
@ -5833,8 +5833,7 @@ gtk_text_selection_bubble_popup_show (gpointer user_data)
|
|||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->selection_bubble)
|
g_clear_pointer (&priv->selection_bubble, gtk_widget_unparent);
|
||||||
gtk_widget_destroy (priv->selection_bubble);
|
|
||||||
|
|
||||||
priv->selection_bubble = gtk_popover_new (GTK_WIDGET (self));
|
priv->selection_bubble = gtk_popover_new (GTK_WIDGET (self));
|
||||||
gtk_style_context_add_class (gtk_widget_get_style_context (priv->selection_bubble),
|
gtk_style_context_add_class (gtk_widget_get_style_context (priv->selection_bubble),
|
||||||
|
Loading…
Reference in New Issue
Block a user