mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
label: Only care about clipboard in unrealize of we need to
This commit is contained in:
parent
8cc2a44268
commit
d0bb72a2aa
@ -3573,12 +3573,15 @@ static void
|
|||||||
gtk_label_unrealize (GtkWidget *widget)
|
gtk_label_unrealize (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GtkLabel *self = GTK_LABEL (widget);
|
GtkLabel *self = GTK_LABEL (widget);
|
||||||
GdkClipboard *clipboard;
|
|
||||||
|
|
||||||
clipboard = gtk_widget_get_primary_clipboard (widget);
|
|
||||||
if (self->select_info &&
|
if (self->select_info &&
|
||||||
gdk_clipboard_get_content (clipboard) == self->select_info->provider)
|
self->select_info->provider)
|
||||||
|
{
|
||||||
|
GdkClipboard *clipboard = gtk_widget_get_primary_clipboard (widget);
|
||||||
|
|
||||||
|
if (gdk_clipboard_get_content (clipboard) == self->select_info->provider)
|
||||||
gdk_clipboard_set_content (clipboard, NULL);
|
gdk_clipboard_set_content (clipboard, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
GTK_WIDGET_CLASS (gtk_label_parent_class)->unrealize (widget);
|
GTK_WIDGET_CLASS (gtk_label_parent_class)->unrealize (widget);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user