summaryrefslogtreecommitdiff
path: root/capplets/appearance/theme-util.h
blob: 33cec7fce44d041d6857fc8e5f05969fa45a360f (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
38
39
40
41
42
43
44
45
46
47
48
/*
 * Copyright (C) 2007 The GNOME Foundation
 * Written by Jens Granseuer <jensgr@gmx.net>
 * All Rights Reserved
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef __THEME_UTIL_H__
#define __THEME_UTIL_H__

enum {
	COL_THUMBNAIL,
	COL_LABEL,
	COL_NAME,
	NUM_COLS
};

typedef enum {
	THEME_TYPE_GTK,
	THEME_TYPE_WINDOW,
	THEME_TYPE_ICON,
	THEME_TYPE_META,
	THEME_TYPE_CURSOR
} ThemeType;

gboolean theme_is_writable(const gpointer theme);
gboolean theme_delete(const gchar* name, ThemeType type);

gboolean theme_model_iter_last(GtkTreeModel* model, GtkTreeIter* iter);
gboolean theme_find_in_model(GtkTreeModel* model, const gchar* name, GtkTreeIter* iter);

void theme_install_file(GtkWindow* parent, const gchar* path);
gboolean packagekit_available(void);

#endif /* __THEME_UTIL_H__ */