[gcr] ui: use gdk_cursor_new_for_display()
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] ui: use gdk_cursor_new_for_display()
- Date: Tue, 28 Jan 2020 15:07:07 +0000 (UTC)
commit 32cee9f631ffecbef7d4af0a56d70d896292e89f
Author: Dmitry Eremin-Solenikov <dbaryshkov gmail com>
Date: Sun Jan 12 23:52:58 2020 +0300
ui: use gdk_cursor_new_for_display()
Use gdk_cursor_new_for_display() instead of deprecated gdk_cursor_new().
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov gmail com>
ui/gcr-display-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ui/gcr-display-view.c b/ui/gcr-display-view.c
index 3d7709a..766a3a2 100644
--- a/ui/gcr-display-view.c
+++ b/ui/gcr-display-view.c
@@ -230,7 +230,7 @@ create_tag_table (GcrDisplayView *self)
static void
on_expander_realize (GtkWidget *widget, gpointer user_data)
{
- GdkCursor *cursor = gdk_cursor_new (GDK_ARROW);
+ GdkCursor *cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), GDK_ARROW);
gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
g_object_unref (cursor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]