void _wnck_application_load_icons (WnckApplication *app) { g_return_if_fail (WNCK_IS_APPLICATION (app)); get_icons (app); if (app->priv->need_emit_icon_changed) emit_icon_changed (app); }
/** * 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: 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); get_icons (app); if (app->priv->need_emit_icon_changed) emit_icon_changed (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; } }