2
* Authors: Rodney Dawes <dobey@ximian.com>
4
* Copyright 2003-2006 Novell, Inc. (www.novell.com)
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
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.
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.
23
#include <gdk-pixbuf/gdk-pixbuf.h>
25
#include <libgnomeui/gnome-desktop-thumbnail.h>
26
#include <libgnomeui/gnome-bg.h>
28
#include "gnome-wp-info.h"
30
#ifndef _GNOME_WP_ITEM_H_
31
#define _GNOME_WP_ITEM_H_
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"
40
typedef struct _GnomeWPItem GnomeWPItem;
48
GnomeBGPlacement options;
49
GnomeBGColorType shade_type;
51
/* Where the Item is in the List */
52
GtkTreeRowReference * rowref;
58
GnomeWPInfo * fileinfo;
60
/* Did the user remove us? */
63
/* Width and Height of the original image */
68
GnomeWPItem * gnome_wp_item_new (const gchar *filename,
69
GHashTable *wallpapers,
70
GnomeDesktopThumbnailFactory *thumbnails);
72
void gnome_wp_item_free (GnomeWPItem *item);
73
GdkPixbuf * gnome_wp_item_get_thumbnail (GnomeWPItem *item,
74
GnomeDesktopThumbnailFactory *thumbs,
77
GdkPixbuf * gnome_wp_item_get_frame_thumbnail (GnomeWPItem *item,
78
GnomeDesktopThumbnailFactory *thumbs,
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);
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);