new files
2007-06-14 Jens Granseuer <jensgr@gmx.net>
* Makefile.am:
* theme-util.c: (theme_delete), (theme_model_iter_last):
* theme-util.h: new files
* appearance.glade: default delete buttons to insensitive,
change label for "Custom" key, adjust column ids for icon view
* appearance-style.c: (style_init), (prepare_list),
(update_color_buttons_from_settings), (theme_name_changed),
(color_button_clicked_cb),
(color_scheme_defaults_button_clicked_cb):
* appearance-themes.c: (theme_get_selected_name),
(theme_get_selected), (theme_select_iter), (theme_select_name),
(theme_is_equal), (theme_set_custom_from_theme),
(theme_changed_on_disk_cb), (theme_custom_cb), (theme_delete_cb),
(theme_details_changed_cb), (theme_color_scheme_changed_cb),
(theme_gconf_changed), (theme_postinit), (themes_init),
(themes_shutdown):
* appearance.h: improvements all around the block (metatheme
deletion now working, and custom theme working much better)
svn path=/trunk/; revision=7725
2007-06-14 21:20:25 +00:00
|
|
|
/*
|
|
|
|
* 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 LOCKDOWN_KEY "/desktop/gnome/lockdown/disable_theme_settings"
|
2007-06-24 11:04:27 +00:00
|
|
|
#define BACKGROUND_KEY "/desktop/gnome/background/picture_filename"
|
2007-07-29 13:56:10 +00:00
|
|
|
#define APPLICATION_FONT_KEY "/desktop/gnome/interface/font_name"
|
2007-12-21 19:42:29 +00:00
|
|
|
#define DOCUMENTS_FONT_KEY "/desktop/gnome/interface/document_font_name"
|
2007-07-29 13:56:10 +00:00
|
|
|
#define DESKTOP_FONT_KEY "/apps/nautilus/preferences/desktop_font"
|
2007-12-21 19:42:29 +00:00
|
|
|
#define WINDOWTITLE_FONT_KEY "/apps/metacity/general/titlebar_font"
|
2007-07-29 13:56:10 +00:00
|
|
|
#define MONOSPACE_FONT_KEY "/desktop/gnome/interface/monospace_font_name"
|
new files
2007-06-14 Jens Granseuer <jensgr@gmx.net>
* Makefile.am:
* theme-util.c: (theme_delete), (theme_model_iter_last):
* theme-util.h: new files
* appearance.glade: default delete buttons to insensitive,
change label for "Custom" key, adjust column ids for icon view
* appearance-style.c: (style_init), (prepare_list),
(update_color_buttons_from_settings), (theme_name_changed),
(color_button_clicked_cb),
(color_scheme_defaults_button_clicked_cb):
* appearance-themes.c: (theme_get_selected_name),
(theme_get_selected), (theme_select_iter), (theme_select_name),
(theme_is_equal), (theme_set_custom_from_theme),
(theme_changed_on_disk_cb), (theme_custom_cb), (theme_delete_cb),
(theme_details_changed_cb), (theme_color_scheme_changed_cb),
(theme_gconf_changed), (theme_postinit), (themes_init),
(themes_shutdown):
* appearance.h: improvements all around the block (metatheme
deletion now working, and custom theme working much better)
svn path=/trunk/; revision=7725
2007-06-14 21:20:25 +00:00
|
|
|
|
2007-10-27 13:59:36 +00:00
|
|
|
#ifdef HAVE_XCURSOR
|
|
|
|
# define CURSOR_THEME_KEY "/desktop/gnome/peripherals/mouse/cursor_theme"
|
|
|
|
# define CURSOR_SIZE_KEY "/desktop/gnome/peripherals/mouse/cursor_size"
|
|
|
|
#else
|
|
|
|
# define CURSOR_THEME_KEY "/desktop/gnome/peripherals/mouse/cursor_font"
|
|
|
|
#endif
|
|
|
|
|
new files
2007-06-14 Jens Granseuer <jensgr@gmx.net>
* Makefile.am:
* theme-util.c: (theme_delete), (theme_model_iter_last):
* theme-util.h: new files
* appearance.glade: default delete buttons to insensitive,
change label for "Custom" key, adjust column ids for icon view
* appearance-style.c: (style_init), (prepare_list),
(update_color_buttons_from_settings), (theme_name_changed),
(color_button_clicked_cb),
(color_scheme_defaults_button_clicked_cb):
* appearance-themes.c: (theme_get_selected_name),
(theme_get_selected), (theme_select_iter), (theme_select_name),
(theme_is_equal), (theme_set_custom_from_theme),
(theme_changed_on_disk_cb), (theme_custom_cb), (theme_delete_cb),
(theme_details_changed_cb), (theme_color_scheme_changed_cb),
(theme_gconf_changed), (theme_postinit), (themes_init),
(themes_shutdown):
* appearance.h: improvements all around the block (metatheme
deletion now working, and custom theme working much better)
svn path=/trunk/; revision=7725
2007-06-14 21:20:25 +00:00
|
|
|
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;
|
|
|
|
|
2007-10-28 23:01:09 +00:00
|
|
|
gboolean theme_is_writable (const gpointer theme);
|
new files
2007-06-14 Jens Granseuer <jensgr@gmx.net>
* Makefile.am:
* theme-util.c: (theme_delete), (theme_model_iter_last):
* theme-util.h: new files
* appearance.glade: default delete buttons to insensitive,
change label for "Custom" key, adjust column ids for icon view
* appearance-style.c: (style_init), (prepare_list),
(update_color_buttons_from_settings), (theme_name_changed),
(color_button_clicked_cb),
(color_scheme_defaults_button_clicked_cb):
* appearance-themes.c: (theme_get_selected_name),
(theme_get_selected), (theme_select_iter), (theme_select_name),
(theme_is_equal), (theme_set_custom_from_theme),
(theme_changed_on_disk_cb), (theme_custom_cb), (theme_delete_cb),
(theme_details_changed_cb), (theme_color_scheme_changed_cb),
(theme_gconf_changed), (theme_postinit), (themes_init),
(themes_shutdown):
* appearance.h: improvements all around the block (metatheme
deletion now working, and custom theme working much better)
svn path=/trunk/; revision=7725
2007-06-14 21:20:25 +00:00
|
|
|
gboolean theme_delete (const gchar *name, ThemeType type);
|
2007-10-27 11:29:11 +00:00
|
|
|
|
new files
2007-06-14 Jens Granseuer <jensgr@gmx.net>
* Makefile.am:
* theme-util.c: (theme_delete), (theme_model_iter_last):
* theme-util.h: new files
* appearance.glade: default delete buttons to insensitive,
change label for "Custom" key, adjust column ids for icon view
* appearance-style.c: (style_init), (prepare_list),
(update_color_buttons_from_settings), (theme_name_changed),
(color_button_clicked_cb),
(color_scheme_defaults_button_clicked_cb):
* appearance-themes.c: (theme_get_selected_name),
(theme_get_selected), (theme_select_iter), (theme_select_name),
(theme_is_equal), (theme_set_custom_from_theme),
(theme_changed_on_disk_cb), (theme_custom_cb), (theme_delete_cb),
(theme_details_changed_cb), (theme_color_scheme_changed_cb),
(theme_gconf_changed), (theme_postinit), (themes_init),
(themes_shutdown):
* appearance.h: improvements all around the block (metatheme
deletion now working, and custom theme working much better)
svn path=/trunk/; revision=7725
2007-06-14 21:20:25 +00:00
|
|
|
gboolean theme_model_iter_last (GtkTreeModel *model, GtkTreeIter *iter);
|
2007-06-23 11:08:21 +00:00
|
|
|
gboolean theme_find_in_model (GtkTreeModel *model, const gchar *name, GtkTreeIter *iter);
|
2008-05-07 20:19:36 +00:00
|
|
|
|
|
|
|
void theme_install_file (GtkWindow *parent, const gchar *path);
|
|
|
|
gboolean packagekit_available (void);
|
2008-05-24 16:34:05 +00:00
|
|
|
gboolean file_delete_recursive (GFile *directory, GError **error);
|