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

« back to all changes in this revision

Viewing changes to capplets/appearance/appearance.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 Thomas Wood <thos@gnome.org>
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
 
#include "config.h"
22
 
 
23
 
#include <glib.h>
24
 
#include <gtk/gtk.h>
25
 
#include <gconf/gconf-client.h>
26
 
#include <libgnomeui/gnome-desktop-thumbnail.h>
27
 
 
28
 
#include "gnome-theme-info.h"
29
 
 
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"
33
 
 
34
 
typedef struct
35
 
{
36
 
  GConfClient *client;
37
 
  GtkBuilder  *ui;
38
 
  GnomeDesktopThumbnailFactory *thumb_factory;
39
 
  gulong screen_size_handler;
40
 
  gulong screen_monitors_handler;
41
 
 
42
 
  /* desktop */
43
 
  GHashTable *wp_hash;
44
 
  gboolean wp_update_gconf;
45
 
  GtkIconView *wp_view;
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;
53
 
  GtkWidget *wp_image;
54
 
  GSList *wp_uris;
55
 
  gint frame;
56
 
  gint thumb_width;
57
 
  gint thumb_height;
58
 
 
59
 
  /* font */
60
 
  GtkWidget *font_details;
61
 
  GSList *font_groups;
62
 
 
63
 
  /* themes */
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;
81
 
 
82
 
  /* style */
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;
89
 
} AppearanceData;
90
 
 
91
 
#define appearance_capplet_get_widget(x, y) (GtkWidget *) gtk_builder_get_object (x->ui, y)