/** * wnck_application_get_icon_is_fallback: * @app: a #WnckApplication * * Gets whether a default fallback icon is used for @app (because none * was set on @app). * * Return value: %TRUE if the icon for @app is a fallback, %FALSE otherwise. **/ gboolean wnck_application_get_icon_is_fallback (WnckApplication *app) { g_return_val_if_fail (WNCK_IS_APPLICATION (app), FALSE); 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; } }
/** * wnck_application_get_mini_icon: * @app: a #WnckApplication. * * Gets the mini-icon to be used for @app. If no mini-icon is set for @app, * a suboptimal heuristic is used to find an appropriate icon. If no mini-icon * was found, a fallback mini-icon is used. * * Return value: (transfer none): the mini-icon for @app. The caller should * reference the returned <classname>GdkPixbuf</classname> if it needs to keep * the mini-icon around. **/ GdkPixbuf* wnck_application_get_mini_icon (WnckApplication *app) { g_return_val_if_fail (WNCK_IS_APPLICATION (app), NULL); _wnck_application_load_icons (app); if (app->priv->mini_icon) return app->priv->mini_icon; else { WnckWindow *w = find_icon_window (app); if (w) return wnck_window_get_mini_icon (w); else return NULL; } }
/** * wnck_application_get_icon: * @app: a #WnckApplication. * * Gets the icon to be used for @app. If no icon is set for @app, a * suboptimal heuristic is used to find an appropriate icon. If no icon was * found, a fallback icon is used. * * Return value: the icon for @app. The caller should reference the returned * <classname>GdkPixbuf</classname> if it needs to keep the icon around. **/ GdkPixbuf* wnck_application_get_icon (WnckApplication *app) { g_return_val_if_fail (WNCK_IS_APPLICATION (app), NULL); get_icons (app); if (app->priv->need_emit_icon_changed) emit_icon_changed (app); if (app->priv->icon) return app->priv->icon; else { WnckWindow *w = find_icon_window (app); if (w) return wnck_window_get_icon (w); else return NULL; } }