mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +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:
parent
31d6a9dcf3
commit
50126f05f0
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue