summaryrefslogtreecommitdiff
path: root/capplets/common/theme-thumbnail.h
blob: fe25f706e83945676cb7a88bfdb9cc89ce8cf5f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __THEME_THUMBNAIL_H__
#define __THEME_THUMBNAIL_H__


#include <gtk/gtk.h>
#include "mate-theme-info.h"

typedef void (* ThemeThumbnailFunc)          (GdkPixbuf          *pixbuf,
                                              gchar              *theme_name,
                                              gpointer            data);

GdkPixbuf *generate_meta_theme_thumbnail     (MateThemeMetaInfo *theme_info);
GdkPixbuf *generate_gtk_theme_thumbnail      (MateThemeInfo     *theme_info);
GdkPixbuf *generate_marco_theme_thumbnail (MateThemeInfo     *theme_info);
GdkPixbuf *generate_icon_theme_thumbnail     (MateThemeIconInfo *theme_info);

void generate_meta_theme_thumbnail_async     (MateThemeMetaInfo *theme_info,
                                              ThemeThumbnailFunc  func,
                                              gpointer            data,
                                              GDestroyNotify      destroy);
void generate_gtk_theme_thumbnail_async      (MateThemeInfo     *theme_info,
                                              ThemeThumbnailFunc  func,
                                              gpointer            data,
                                              GDestroyNotify      destroy);
void generate_marco_theme_thumbnail_async (MateThemeInfo     *theme_info,
                                              ThemeThumbnailFunc  func,
                                              gpointer            data,
                                              GDestroyNotify      destroy);
void generate_icon_theme_thumbnail_async     (MateThemeIconInfo *theme_info,
                                              ThemeThumbnailFunc  func,
                                              gpointer            data,
                                              GDestroyNotify      destroy);

void theme_thumbnail_factory_init            (int                 argc,
                                              char               *argv[]);

#endif /* __THEME_THUMBNAIL_H__ */