[libwnck/gnome-2-26] [core] Fix wnck_application_get_icon_is_fallback()
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [libwnck/gnome-2-26] [core] Fix wnck_application_get_icon_is_fallback()
- Date: Mon, 29 Jun 2009 22:42:02 +0000 (UTC)
commit bc54279cec3a82724c173cb1e112d908421e2b7b
Author: Vincent Untz <vuntz gnome org>
Date: Mon Jun 22 10:36:09 2009 +0200
[core] Fix wnck_application_get_icon_is_fallback()
We can't simply call _wnck_icon_cache_get_is_fallback() since we're
possibly using the icon from a window:
+ if we have an icon for the application, we know it's not a fallback
icon (we use _wnck_icon_cache_set_want_fallback())
+ if we use the icon of a window, then we simply relay the result of
wnck_window_get_icon_is_fallback()
http://bugzilla.gnome.org/show_bug.cgi?id=586571
libwnck/application.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/libwnck/application.c b/libwnck/application.c
index 3ad0a32..5679298 100644
--- a/libwnck/application.c
+++ b/libwnck/application.c
@@ -479,7 +479,16 @@ wnck_application_get_icon_is_fallback (WnckApplication *app)
{
g_return_val_if_fail (WNCK_IS_APPLICATION (app), FALSE);
- return _wnck_icon_cache_get_is_fallback (app->priv->icon_cache);
+ if (app->priv->icon)
+ return FALSE;
+ else
+ {
+ WnckWindow *w = find_icon_window (app);
+ if (w)
+ return wnck_window_get_icon_is_fallback (w);
+ else
+ return TRUE;
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]