[libwnck] libwnck/test-icon-cache: Use WnckHandle to get the screen



commit 8eae770e11cb30bdab041e0831ad9a5aeb123d96
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Sep 16 13:19:24 2022 +0200

    libwnck/test-icon-cache: Use WnckHandle to get the screen

 libwnck/test-icon-cache.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libwnck/test-icon-cache.c b/libwnck/test-icon-cache.c
index 2f3fc38d..aa97251a 100644
--- a/libwnck/test-icon-cache.c
+++ b/libwnck/test-icon-cache.c
@@ -489,6 +489,7 @@ int
 main (int    argc,
       char **argv)
 {
+  g_autoptr (WnckHandle) handle = NULL;
   WnckScreen *screen;
   GtkWidget *window;
   GtkWidget *vbox;
@@ -498,7 +499,8 @@ main (int    argc,
 
   gtk_init (&argc, &argv);
 
-  screen = wnck_screen_get_default ();
+  handle = wnck_handle_new (WNCK_CLIENT_TYPE_APPLICATION);
+  screen = wnck_handle_get_default_screen (handle);
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), WINDOW_NAME);


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