1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-25 05:09:30 +00:00

calls-application: Replace GtkClipboard with GdkClipboard

https://docs.gtk.org/gtk4/migrating-3to4.html#replace-gtkclipboard-with-gdkclipboard

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-14 17:14:21 -08:00
parent 31d6a9dcf3
commit 50126f05f0

View file

@ -404,10 +404,10 @@ copy_number (GSimpleAction *action,
gpointer user_data)
{
const char *number = g_variant_get_string (parameter, NULL);
GtkClipboard *clipboard =
gtk_clipboard_get_default (gdk_display_get_default ());
GdkClipboard *clipboard =
gdk_display_get_clipboard (gdk_display_get_default ());
gtk_clipboard_set_text (clipboard, number, -1);
gdk_clipboard_set_text (clipboard, number);
g_debug ("Copied `%s' to clipboard", number);
}