2008-07-28 Bastien Nocera <hadess@hadess.net> * Makefile.am: * configure.in: Remove libsounds and esound usage, check for libcanberra instead (Closes: #542979) 2008-07-28 Bastien Nocera <hadess@hadess.net> * theme-util.c: * theme-util.h: Remove the directory deletion helpers, and move them to the common sub-directory 2008-07-28 Bastien Nocera <hadess@hadess.net> * Makefile.am: * capplet-util.c (directory_delete_recursive), (capplet_file_delete_recursive): * capplet-util.h: Move directory deletion helper function from the appearance capplet into a common directory 2008-07-28 Bastien Nocera <hadess@hadess.net> * Makefile.am: * sound-properties-capplet.c (create_dialog), (setup_dialog), (get_legacy_settings): * sound-properties.glade: * sound-theme-definition.h: * sound-theme-file-utils.[ch]: * sound-theme.[ch]: Remove separate bell settings tab, remove libsounds dependency, add freedesktop sound theme support through libcanberra (Closes: #542979) svn path=/trunk/; revision=8802
64 lines
2.4 KiB
C
64 lines
2.4 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 NOTIFICATION_THEME_KEY "/apps/notification-daemon/theme"
|
|
#define COLOR_SCHEME_KEY "/desktop/gnome/interface/gtk_color_scheme"
|
|
#define LOCKDOWN_KEY "/desktop/gnome/lockdown/disable_theme_settings"
|
|
#define BACKGROUND_KEY "/desktop/gnome/background/picture_filename"
|
|
#define APPLICATION_FONT_KEY "/desktop/gnome/interface/font_name"
|
|
#define DOCUMENTS_FONT_KEY "/desktop/gnome/interface/document_font_name"
|
|
#define DESKTOP_FONT_KEY "/apps/nautilus/preferences/desktop_font"
|
|
#define WINDOWTITLE_FONT_KEY "/apps/metacity/general/titlebar_font"
|
|
#define MONOSPACE_FONT_KEY "/desktop/gnome/interface/monospace_font_name"
|
|
|
|
#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
|
|
|
|
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);
|
|
|