Go to the source code of this file.
Functions | |
| static void | get_fallback_icons (MetaScreen *screen, GdkPixbuf **iconp, int ideal_width, int ideal_height, GdkPixbuf **mini_iconp, int ideal_mini_width, int ideal_mini_height) |
| static gboolean | find_largest_sizes (gulong *data, gulong nitems, int *width, int *height) |
| static gboolean | find_best_size (gulong *data, gulong nitems, int ideal_width, int ideal_height, int *width, int *height, gulong **start) |
| static void | argbdata_to_pixdata (gulong *argb_data, int len, guchar **pixdata) |
| static gboolean | read_rgb_icon (MetaDisplay *display, Window xwindow, int ideal_width, int ideal_height, int ideal_mini_width, int ideal_mini_height, int *width, int *height, guchar **pixdata, int *mini_width, int *mini_height, guchar **mini_pixdata) |
| static void | free_pixels (guchar *pixels, gpointer data) |
| static void | get_pixmap_geometry (MetaDisplay *display, Pixmap pixmap, int *w, int *h, int *d) |
| static GdkPixbuf * | apply_mask (GdkPixbuf *pixbuf, GdkPixbuf *mask) |
| static gboolean | try_pixmap_and_mask (MetaDisplay *display, Pixmap src_pixmap, Pixmap src_mask, GdkPixbuf **iconp, int ideal_width, int ideal_height, GdkPixbuf **mini_iconp, int ideal_mini_width, int ideal_mini_height) |
| static void | get_kwm_win_icon (MetaDisplay *display, Window xwindow, Pixmap *pixmap, Pixmap *mask) |
| void | meta_icon_cache_init (MetaIconCache *icon_cache) |
| static void | clear_icon_cache (MetaIconCache *icon_cache, gboolean dirty_all) |
| void | meta_icon_cache_free (MetaIconCache *icon_cache) |
| void | meta_icon_cache_property_changed (MetaIconCache *icon_cache, MetaDisplay *display, Atom atom) |
| gboolean | meta_icon_cache_get_icon_invalidated (MetaIconCache *icon_cache) |
| static void | replace_cache (MetaIconCache *icon_cache, IconOrigin origin, GdkPixbuf *new_icon, GdkPixbuf *new_mini_icon) |
| static GdkPixbuf * | scaled_from_pixdata (guchar *pixdata, int w, int h, int new_w, int new_h) |
| gboolean | meta_read_icons (MetaScreen *screen, Window xwindow, MetaIconCache *icon_cache, Pixmap wm_hints_pixmap, Pixmap wm_hints_mask, GdkPixbuf **iconp, int ideal_width, int ideal_height, GdkPixbuf **mini_iconp, int ideal_mini_width, int ideal_mini_height) |
| static GdkPixbuf* apply_mask | ( | GdkPixbuf * | pixbuf, | |
| GdkPixbuf * | mask | |||
| ) | [static] |
| static void argbdata_to_pixdata | ( | gulong * | argb_data, | |
| int | len, | |||
| guchar ** | pixdata | |||
| ) | [static] |
| static void clear_icon_cache | ( | MetaIconCache * | icon_cache, | |
| gboolean | dirty_all | |||
| ) | [static] |
Definition at line 525 of file iconcache.c.
References _MetaIconCache::kwm_win_icon_dirty, _MetaIconCache::net_wm_icon_dirty, NULL, _MetaIconCache::origin, TRUE, USING_NO_ICON, and _MetaIconCache::wm_hints_dirty.
Referenced by meta_icon_cache_free(), meta_read_icons(), and replace_cache().
| static gboolean find_best_size | ( | gulong * | data, | |
| gulong | nitems, | |||
| int | ideal_width, | |||
| int | ideal_height, | |||
| int * | width, | |||
| int * | height, | |||
| gulong ** | start | |||
| ) | [static] |
Definition at line 82 of file iconcache.c.
References FALSE, find_largest_sizes(), NULL, and TRUE.
Referenced by read_rgb_icon().
| static gboolean find_largest_sizes | ( | gulong * | data, | |
| gulong | nitems, | |||
| int * | width, | |||
| int * | height | |||
| ) | [static] |
| static void free_pixels | ( | guchar * | pixels, | |
| gpointer | data | |||
| ) | [static] |
| static void get_fallback_icons | ( | MetaScreen * | screen, | |
| GdkPixbuf ** | iconp, | |||
| int | ideal_width, | |||
| int | ideal_height, | |||
| GdkPixbuf ** | mini_iconp, | |||
| int | ideal_mini_width, | |||
| int | ideal_mini_height | |||
| ) | [static] |
Definition at line 34 of file iconcache.c.
References meta_ui_get_default_mini_icon(), meta_ui_get_default_window_icon(), and _MetaScreen::ui.
Referenced by meta_read_icons().
| static void get_kwm_win_icon | ( | MetaDisplay * | display, | |
| Window | xwindow, | |||
| Pixmap * | pixmap, | |||
| Pixmap * | mask | |||
| ) | [static] |
Definition at line 458 of file iconcache.c.
References meta_error_trap_pop_with_return(), meta_error_trap_push_with_return(), NULL, TRUE, and _MetaDisplay::xdisplay.
Referenced by meta_read_icons().
| static void get_pixmap_geometry | ( | MetaDisplay * | display, | |
| Pixmap | pixmap, | |||
| int * | w, | |||
| int * | h, | |||
| int * | d | |||
| ) | [static] |
Definition at line 293 of file iconcache.c.
References _MetaDisplay::xdisplay.
Referenced by try_pixmap_and_mask().
| void meta_icon_cache_free | ( | MetaIconCache * | icon_cache | ) |
Definition at line 549 of file iconcache.c.
References clear_icon_cache(), and FALSE.
Referenced by meta_invalidate_default_icons(), and meta_window_free().
| gboolean meta_icon_cache_get_icon_invalidated | ( | MetaIconCache * | icon_cache | ) |
Definition at line 568 of file iconcache.c.
References FALSE, _MetaIconCache::kwm_win_icon_dirty, _MetaIconCache::net_wm_icon_dirty, _MetaIconCache::origin, TRUE, USING_FALLBACK_ICON, USING_KWM_WIN_ICON, USING_NET_WM_ICON, USING_NO_ICON, USING_WM_HINTS, _MetaIconCache::want_fallback, and _MetaIconCache::wm_hints_dirty.
Referenced by meta_read_icons().
| void meta_icon_cache_init | ( | MetaIconCache * | icon_cache | ) |
Definition at line 503 of file iconcache.c.
References _MetaIconCache::kwm_win_icon_dirty, _MetaIconCache::net_wm_icon_dirty, NULL, _MetaIconCache::origin, _MetaIconCache::prev_mask, _MetaIconCache::prev_pixmap, TRUE, USING_NO_ICON, _MetaIconCache::want_fallback, and _MetaIconCache::wm_hints_dirty.
Referenced by meta_window_new_with_attrs().
| void meta_icon_cache_property_changed | ( | MetaIconCache * | icon_cache, | |
| MetaDisplay * | display, | |||
| Atom | atom | |||
| ) |
Definition at line 555 of file iconcache.c.
References _MetaIconCache::kwm_win_icon_dirty, _MetaIconCache::net_wm_icon_dirty, TRUE, and _MetaIconCache::wm_hints_dirty.
Referenced by process_property_notify(), and reload_wm_hints().
| gboolean meta_read_icons | ( | MetaScreen * | screen, | |
| Window | xwindow, | |||
| MetaIconCache * | icon_cache, | |||
| Pixmap | wm_hints_pixmap, | |||
| Pixmap | wm_hints_mask, | |||
| GdkPixbuf ** | iconp, | |||
| int | ideal_width, | |||
| int | ideal_height, | |||
| GdkPixbuf ** | mini_iconp, | |||
| int | ideal_mini_width, | |||
| int | ideal_mini_height | |||
| ) |
Definition at line 671 of file iconcache.c.
References clear_icon_cache(), _MetaScreen::display, FALSE, get_fallback_icons(), get_kwm_win_icon(), _MetaIconCache::kwm_win_icon_dirty, meta_icon_cache_get_icon_invalidated(), meta_ui_get_fallback_icons(), _MetaIconCache::net_wm_icon_dirty, NULL, _MetaIconCache::origin, _MetaIconCache::prev_mask, _MetaIconCache::prev_pixmap, read_rgb_icon(), replace_cache(), scaled_from_pixdata(), TRUE, try_pixmap_and_mask(), USING_FALLBACK_ICON, USING_KWM_WIN_ICON, USING_NET_WM_ICON, USING_WM_HINTS, _MetaIconCache::want_fallback, and _MetaIconCache::wm_hints_dirty.
Referenced by meta_window_update_icon_now().
| static gboolean read_rgb_icon | ( | MetaDisplay * | display, | |
| Window | xwindow, | |||
| int | ideal_width, | |||
| int | ideal_height, | |||
| int | ideal_mini_width, | |||
| int | ideal_mini_height, | |||
| int * | width, | |||
| int * | height, | |||
| guchar ** | pixdata, | |||
| int * | mini_width, | |||
| int * | mini_height, | |||
| guchar ** | mini_pixdata | |||
| ) | [static] |
Definition at line 210 of file iconcache.c.
References argbdata_to_pixdata(), FALSE, find_best_size(), meta_error_trap_pop_with_return(), meta_error_trap_push_with_return(), NULL, TRUE, and _MetaDisplay::xdisplay.
Referenced by meta_read_icons().
| static void replace_cache | ( | MetaIconCache * | icon_cache, | |
| IconOrigin | origin, | |||
| GdkPixbuf * | new_icon, | |||
| GdkPixbuf * | new_mini_icon | |||
| ) | [static] |
Definition at line 592 of file iconcache.c.
References clear_icon_cache(), FALSE, and _MetaIconCache::origin.
Referenced by meta_read_icons().
| static GdkPixbuf* scaled_from_pixdata | ( | guchar * | pixdata, | |
| int | w, | |||
| int | h, | |||
| int | new_w, | |||
| int | new_h | |||
| ) | [static] |
Definition at line 615 of file iconcache.c.
References free_pixels(), NULL, and TRUE.
Referenced by meta_read_icons().
| static gboolean try_pixmap_and_mask | ( | MetaDisplay * | display, | |
| Pixmap | src_pixmap, | |||
| Pixmap | src_mask, | |||
| GdkPixbuf ** | iconp, | |||
| int | ideal_width, | |||
| int | ideal_height, | |||
| GdkPixbuf ** | mini_iconp, | |||
| int | ideal_mini_width, | |||
| int | ideal_mini_height | |||
| ) | [static] |
Definition at line 374 of file iconcache.c.
References apply_mask(), FALSE, get_pixmap_geometry(), meta_error_trap_pop(), meta_error_trap_push(), meta_gdk_pixbuf_get_from_pixmap(), NULL, and TRUE.
Referenced by meta_read_icons().
1.5.5