~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to capplets/appearance/theme-util.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2007 The GNOME Foundation
3
 
 * Written by Jens Granseuer <jensgr@gmx.net>
4
 
 * All Rights Reserved
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License along
17
 
 * with this program; if not, write to the Free Software Foundation, Inc.,
18
 
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
 
 */
20
 
 
21
 
#define GTK_THEME_KEY "/desktop/gnome/interface/gtk_theme"
22
 
#define METACITY_THEME_KEY "/apps/metacity/general/theme"
23
 
#define ICON_THEME_KEY "/desktop/gnome/interface/icon_theme"
24
 
#define NOTIFICATION_THEME_KEY "/apps/notification-daemon/theme"
25
 
#define COLOR_SCHEME_KEY "/desktop/gnome/interface/gtk_color_scheme"
26
 
#define LOCKDOWN_KEY "/desktop/gnome/lockdown/disable_theme_settings"
27
 
#define BACKGROUND_KEY "/desktop/gnome/background/picture_filename"
28
 
#define APPLICATION_FONT_KEY "/desktop/gnome/interface/font_name"
29
 
#define DOCUMENTS_FONT_KEY "/desktop/gnome/interface/document_font_name"
30
 
#define DESKTOP_FONT_KEY "/apps/nautilus/preferences/desktop_font"
31
 
#define WINDOWTITLE_FONT_KEY "/apps/metacity/general/titlebar_font"
32
 
#define MONOSPACE_FONT_KEY "/desktop/gnome/interface/monospace_font_name"
33
 
 
34
 
#ifdef HAVE_XCURSOR
35
 
# define CURSOR_THEME_KEY "/desktop/gnome/peripherals/mouse/cursor_theme"
36
 
# define CURSOR_SIZE_KEY "/desktop/gnome/peripherals/mouse/cursor_size"
37
 
#else
38
 
# define CURSOR_THEME_KEY "/desktop/gnome/peripherals/mouse/cursor_font"
39
 
#endif
40
 
 
41
 
enum {
42
 
  COL_THUMBNAIL,
43
 
  COL_LABEL,
44
 
  COL_NAME,
45
 
  NUM_COLS
46
 
};
47
 
 
48
 
typedef enum {
49
 
  THEME_TYPE_GTK,
50
 
  THEME_TYPE_WINDOW,
51
 
  THEME_TYPE_ICON,
52
 
  THEME_TYPE_META,
53
 
  THEME_TYPE_CURSOR
54
 
} ThemeType;
55
 
 
56
 
gboolean theme_is_writable (const gpointer theme);
57
 
gboolean theme_delete (const gchar *name, ThemeType type);
58
 
 
59
 
gboolean theme_model_iter_last (GtkTreeModel *model, GtkTreeIter *iter);
60
 
gboolean theme_find_in_model (GtkTreeModel *model, const gchar *name, GtkTreeIter *iter);
61
 
 
62
 
void     theme_install_file (GtkWindow *parent, const gchar *path);
63
 
gboolean packagekit_available (void);
64