[libwnck/wip/muktupavels/use-wnck-handle: 6/7] window: use WnckHandle to get icon sizes




commit aff706bbbab77d5f38cba8f188a48502aa8f218f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Feb 23 07:19:25 2022 +0200

    window: use WnckHandle to get icon sizes

 libwnck/window.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/window.c b/libwnck/window.c
index 2760816e..581f60fc 100644
--- a/libwnck/window.c
+++ b/libwnck/window.c
@@ -2103,15 +2103,18 @@ wnck_window_transient_is_most_recently_activated (WnckWindow *window)
 static void
 get_icons (WnckWindow *window)
 {
+  WnckHandle *handle;
   GdkPixbuf *icon;
   GdkPixbuf *mini_icon;
   gsize normal_size;
   gsize mini_size;
 
+  handle = _wnck_screen_get_handle (window->priv->screen);
+
   icon = NULL;
   mini_icon = NULL;
-  normal_size = _wnck_get_default_icon_size ();
-  mini_size = _wnck_get_default_mini_icon_size ();
+  normal_size = _wnck_handle_get_default_icon_size (handle);
+  mini_size = _wnck_handle_get_default_mini_icon_size (handle);
 
   if (_wnck_read_icons (window->priv->screen,
                         window->priv->xwindow,


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