2007-06-23 Jens Granseuer <jensgr@gmx.net> * appearance-style.c: (add_to_treeview), (remove_from_treeview), (update_in_treeview), (changed_on_disk_cb), (style_init): * appearance-themes.c: (theme_select_name), (theme_set_custom_from_theme), (theme_changed_on_disk_cb), (theme_thumbnail_done_cb): * theme-installer.c: (gnome_theme_installer_run): * theme-util.c: (theme_find_in_model): * theme-util.h: listen to on-disk theme changes in the details tabs, too svn path=/trunk/; revision=7762
45 lines
1.6 KiB
C
45 lines
1.6 KiB
C
/*
|
|
* 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.
|
|
*/
|
|
|
|
#define GTK_THEME_KEY "/desktop/gnome/interface/gtk_theme"
|
|
#define METACITY_THEME_KEY "/apps/metacity/general/theme"
|
|
#define ICON_THEME_KEY "/desktop/gnome/interface/icon_theme"
|
|
#define COLOR_SCHEME_KEY "/desktop/gnome/interface/gtk_color_scheme"
|
|
#define CURSOR_THEME_KEY "/desktop/gnome/peripherals/mouse/cursor_theme"
|
|
#define LOCKDOWN_KEY "/desktop/gnome/lockdown/disable_theme_settings"
|
|
|
|
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_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);
|