[nautilus/wip/antoniof/gtk4-preparation-popovers: 43/45] general: Stop using GdkCursorType
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-popovers: 43/45] general: Stop using GdkCursorType
- Date: Sun, 26 Dec 2021 23:15:38 +0000 (UTC)
commit a97c957d1ce7436b30dee1a3966f377c607f7329
Author: António Fernandes <antoniof gnome org>
Date: Wed Dec 22 21:50:10 2021 +0000
general: Stop using GdkCursorType
It's gone in GTK 4. Replace with the equivalent named cursors.
src/nautilus-list-view.c | 2 +-
src/nautilus-properties-window.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 0f207ff7b..2e66e142e 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -3494,7 +3494,7 @@ nautilus_list_view_click_policy_changed (NautilusFilesView *directory_view)
{
if (hand_cursor == NULL)
{
- hand_cursor = gdk_cursor_new_for_display (display, GDK_HAND2);
+ hand_cursor = gdk_cursor_new_from_name (display, "pointer");
}
}
}
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 5b52311e4..3bce0be20 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2872,7 +2872,7 @@ start_long_operation (NautilusPropertiesWindow *self)
g_autoptr (GdkCursor) cursor = NULL;
display = gtk_widget_get_display (GTK_WIDGET (self));
- cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+ cursor = gdk_cursor_new_from_name (display, "wait");
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (self)), cursor);
}
self->long_operation_underway++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]