[libwnck/wip/muktupavels/icons: 15/26] icon-cache: add functions to get cached icons




commit 6b0a8cd574649a13b2ca6d5826e3deab4387870b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Mar 14 14:48:57 2022 +0200

    icon-cache: add functions to get cached icons

 libwnck/wnck-icon-cache-private.h |  4 ++++
 libwnck/wnck-icon-cache.c         | 12 ++++++++++++
 2 files changed, 16 insertions(+)
---
diff --git a/libwnck/wnck-icon-cache-private.h b/libwnck/wnck-icon-cache-private.h
index 57a95700..751cac00 100644
--- a/libwnck/wnck-icon-cache-private.h
+++ b/libwnck/wnck-icon-cache-private.h
@@ -43,6 +43,10 @@ gboolean       _wnck_read_icons                      (WnckIconCache  *icon_cache
                                                       GdkPixbuf     **iconp,
                                                       GdkPixbuf     **mini_iconp);
 
+GdkPixbuf     *_wnck_icon_cache_get_icon             (WnckIconCache  *self);
+
+GdkPixbuf     *_wnck_icon_cache_get_mini_icon        (WnckIconCache  *self);
+
 void           _wnck_icon_cache_invalidate           (WnckIconCache  *self);
 
 G_END_DECLS
diff --git a/libwnck/wnck-icon-cache.c b/libwnck/wnck-icon-cache.c
index 5b8ab519..f5ccd2e9 100644
--- a/libwnck/wnck-icon-cache.c
+++ b/libwnck/wnck-icon-cache.c
@@ -671,6 +671,18 @@ _wnck_read_icons (WnckIconCache  *icon_cache,
   return FALSE;
 }
 
+GdkPixbuf *
+_wnck_icon_cache_get_icon (WnckIconCache *self)
+{
+  return self->icon;
+}
+
+GdkPixbuf *
+_wnck_icon_cache_get_mini_icon (WnckIconCache *self)
+{
+  return self->mini_icon;
+}
+
 void
 _wnck_icon_cache_invalidate (WnckIconCache *self)
 {


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