diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-02-23 07:12:14 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-02-23 07:12:14 +0200 |
commit | 1168cf11c1c7d60a8df42f9be541652005fd4fee (patch) | |
tree | b20710951dcc7f3c6e203bd85a3125297907931d | |
parent | 8dfac46d6e3bc6e4b67497c28b36f22c618606c7 (diff) | |
download | libwnck-1168cf11c1c7d60a8df42f9be541652005fd4fee.tar.gz |
application: use WnckHandle to get icon sizes
-rw-r--r-- | libwnck/application.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libwnck/application.c b/libwnck/application.c index 174ad24..518179f 100644 --- a/libwnck/application.c +++ b/libwnck/application.c @@ -313,15 +313,18 @@ wnck_application_get_pid (WnckApplication *app) static void get_icons (WnckApplication *app) { + WnckHandle *handle; GdkPixbuf *icon; GdkPixbuf *mini_icon; gsize normal_size; gsize mini_size; + handle = _wnck_screen_get_handle (app->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 (app->priv->screen, app->priv->xwindow, |