2
* Copyright (C) 2007 The GNOME Foundation
3
* Written by Thomas Wood <thos@gnome.org>
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.
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.
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.
25
#include <gconf/gconf-client.h>
26
#include <libgnomeui/gnome-desktop-thumbnail.h>
28
#include "gnome-theme-info.h"
30
#define APPEARANCE_KEY_DIR "/apps/control-center/appearance"
31
#define MORE_THEMES_URL_KEY APPEARANCE_KEY_DIR "/more_themes_url"
32
#define MORE_BACKGROUNDS_URL_KEY APPEARANCE_KEY_DIR "/more_backgrounds_url"
38
GnomeDesktopThumbnailFactory *thumb_factory;
39
gulong screen_size_handler;
40
gulong screen_monitors_handler;
44
gboolean wp_update_gconf;
46
GtkTreeModel *wp_model;
47
GtkWidget *wp_scpicker;
48
GtkWidget *wp_pcpicker;
49
GtkWidget *wp_style_menu;
50
GtkWidget *wp_color_menu;
51
GtkWidget *wp_rem_button;
52
GtkFileChooser *wp_filesel;
60
GtkWidget *font_details;
64
GtkListStore *theme_store;
65
GnomeThemeMetaInfo *theme_custom;
66
GdkPixbuf *theme_icon;
67
GtkWidget *theme_save_dialog;
68
GtkWidget *theme_message_area;
69
GtkWidget *theme_message_label;
70
GtkWidget *apply_background_button;
71
GtkWidget *revert_font_button;
72
GtkWidget *apply_font_button;
73
GtkWidget *install_button;
74
GtkWidget *theme_info_icon;
75
GtkWidget *theme_error_icon;
76
gchar *revert_application_font;
77
gchar *revert_documents_font;
78
gchar *revert_desktop_font;
79
gchar *revert_windowtitle_font;
80
gchar *revert_monospace_font;
83
GdkPixbuf *gtk_theme_icon;
84
GdkPixbuf *window_theme_icon;
85
GdkPixbuf *icon_theme_icon;
86
GtkWidget *style_message_area;
87
GtkWidget *style_message_label;
88
GtkWidget *style_install_button;
91
#define appearance_capplet_get_widget(x, y) (GtkWidget *) gtk_builder_get_object (x->ui, y)