~charlesk/gnome-control-center/make-new-panel

« back to all changes in this revision

Viewing changes to capplets/appearance/gnome-wp-item.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
 
 *  Authors: Rodney Dawes <dobey@ximian.com>
3
 
 *
4
 
 *  Copyright 2003-2006 Novell, Inc. (www.novell.com)
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of version 2 of the GNU General Public License
8
 
 *  as published by the Free Software Foundation
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
18
 
 *
19
 
 */
20
 
 
21
 
#include <glib.h>
22
 
#include <gio/gio.h>
23
 
#include <gdk-pixbuf/gdk-pixbuf.h>
24
 
#include <gtk/gtk.h>
25
 
#include <libgnomeui/gnome-desktop-thumbnail.h>
26
 
#include <libgnomeui/gnome-bg.h>
27
 
 
28
 
#include "gnome-wp-info.h"
29
 
 
30
 
#ifndef _GNOME_WP_ITEM_H_
31
 
#define _GNOME_WP_ITEM_H_
32
 
 
33
 
#define WP_PATH_KEY "/desktop/gnome/background"
34
 
#define WP_FILE_KEY WP_PATH_KEY "/picture_filename"
35
 
#define WP_OPTIONS_KEY WP_PATH_KEY "/picture_options"
36
 
#define WP_SHADING_KEY WP_PATH_KEY "/color_shading_type"
37
 
#define WP_PCOLOR_KEY WP_PATH_KEY "/primary_color"
38
 
#define WP_SCOLOR_KEY WP_PATH_KEY "/secondary_color"
39
 
 
40
 
typedef struct _GnomeWPItem GnomeWPItem;
41
 
 
42
 
struct _GnomeWPItem {
43
 
  GnomeBG *bg;
44
 
 
45
 
  gchar * name;
46
 
  gchar * filename;
47
 
  gchar * description;
48
 
  GnomeBGPlacement options;
49
 
  GnomeBGColorType shade_type;
50
 
 
51
 
  /* Where the Item is in the List */
52
 
  GtkTreeRowReference * rowref;
53
 
 
54
 
  /* Real colors */
55
 
  GdkColor * pcolor;
56
 
  GdkColor * scolor;
57
 
 
58
 
  GnomeWPInfo * fileinfo;
59
 
 
60
 
  /* Did the user remove us? */
61
 
  gboolean deleted;
62
 
 
63
 
  /* Width and Height of the original image */
64
 
  gint width;
65
 
  gint height;
66
 
};
67
 
 
68
 
GnomeWPItem * gnome_wp_item_new (const gchar *filename,
69
 
                                 GHashTable *wallpapers,
70
 
                                 GnomeDesktopThumbnailFactory *thumbnails);
71
 
 
72
 
void gnome_wp_item_free (GnomeWPItem *item);
73
 
GdkPixbuf * gnome_wp_item_get_thumbnail (GnomeWPItem *item,
74
 
                                         GnomeDesktopThumbnailFactory *thumbs,
75
 
                                         gint width,
76
 
                                         gint height);
77
 
GdkPixbuf * gnome_wp_item_get_frame_thumbnail (GnomeWPItem *item,
78
 
                                               GnomeDesktopThumbnailFactory *thumbs,
79
 
                                               gint width,
80
 
                                               gint height,
81
 
                                               gint frame);
82
 
void gnome_wp_item_update (GnomeWPItem *item);
83
 
void gnome_wp_item_update_description (GnomeWPItem *item);
84
 
void gnome_wp_item_ensure_gnome_bg (GnomeWPItem *item);
85
 
 
86
 
const gchar *wp_item_option_to_string (GnomeBGPlacement type);
87
 
const gchar *wp_item_shading_to_string (GnomeBGColorType type);
88
 
GnomeBGPlacement wp_item_string_to_option (const gchar *option);
89
 
GnomeBGColorType wp_item_string_to_shading (const gchar *shade_type);
90
 
 
91
 
#endif