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:
@@ -404,10 +404,10 @@ copy_number (GSimpleAction *action,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
const char *number = g_variant_get_string (parameter, NULL);
|
const char *number = g_variant_get_string (parameter, NULL);
|
||||||
GtkClipboard *clipboard =
|
GdkClipboard *clipboard =
|
||||||
gtk_clipboard_get_default (gdk_display_get_default ());
|
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);
|
g_debug ("Copied `%s' to clipboard", number);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user