[libwnck/wip/muktupavels/use-wnck-handle: 4/7] application: use WnckHandle to get icon sizes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/use-wnck-handle: 4/7] application: use WnckHandle to get icon sizes
- Date: Wed, 23 Feb 2022 21:08:14 +0000 (UTC)
commit 1168cf11c1c7d60a8df42f9be541652005fd4fee
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Feb 23 07:12:14 2022 +0200
application: use WnckHandle to get icon sizes
libwnck/application.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/application.c b/libwnck/application.c
index 174ad241..518179f3 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]