[buoh] Fix gdk_cursor_new deprecation



commit 6f4559dc0ac28e0eb56637f63e5b7bd59344aa9b
Author: Jan Tojnar <jtojnar gmail com>
Date:   Sun Dec 27 09:24:49 2020 +0100

    Fix gdk_cursor_new deprecation
    
    The build complained
    
        'gdk_cursor_new' is deprecated: Use 'gdk_cursor_new_for_display' instead
    
    Unfortunately, the API changes in GTK 4.

 src/buoh-view-comic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/buoh-view-comic.c b/src/buoh-view-comic.c
index fe4451a..42f5547 100644
--- a/src/buoh-view-comic.c
+++ b/src/buoh-view-comic.c
@@ -767,7 +767,7 @@ buoh_view_comic_load (BuohViewComic *c_view)
                               "status", STATE_COMIC_LOADING,
                               NULL);
 
-                cursor = gdk_cursor_new (GDK_WATCH);
+                cursor = gdk_cursor_new_for_display (gdk_display_get_default (), GDK_WATCH);
                 gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (c_view)),
                                        cursor);
                 g_object_unref (cursor);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]