1
/* -*- mode: c; style: linux -*- */
4
* Copyright (C) 2000 Helix Code, Inc.
6
* Written by Bradford Hovinen <hovinen@helixcode.com>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2, or (at your option)
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24
#ifndef __BGPREFERENCES_H
25
#define __BGPREFERENCES_H
27
#include <glib-object.h>
28
#include <gdk-pixbuf/gdk-pixbuf.h>
29
#include <gconf/gconf-client.h>
31
#define BG_PREFERENCES(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, bg_preferences_get_type (), BGPreferences)
32
#define BG_PREFERENCES_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, bg_preferences_get_type (), BGPreferencesClass)
33
#define IS_BG_PREFERENCES(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, bg_preferences_get_type ())
35
#define BG_PREFERENCES_DRAW_BACKGROUND "/desktop/gnome/background/draw_background"
36
#define BG_PREFERENCES_PRIMARY_COLOR "/desktop/gnome/background/primary_color"
37
#define BG_PREFERENCES_SECONDARY_COLOR "/desktop/gnome/background/secondary_color"
38
#define BG_PREFERENCES_COLOR_SHADING_TYPE "/desktop/gnome/background/color_shading_type"
39
#define BG_PREFERENCES_PICTURE_OPTIONS "/desktop/gnome/background/picture_options"
40
#define BG_PREFERENCES_PICTURE_OPACITY "/desktop/gnome/background/picture_opacity"
41
#define BG_PREFERENCES_PICTURE_FILENAME "/desktop/gnome/background/picture_filename"
44
typedef struct _BGPreferences BGPreferences;
45
typedef struct _BGPreferencesClass BGPreferencesClass;
47
typedef enum _orientation_t {
48
ORIENTATION_SOLID = 0,
53
typedef enum _wallpaper_type_t {
54
WPTYPE_TILED = 0, WPTYPE_CENTERED, WPTYPE_SCALED,
55
WPTYPE_STRETCHED, WPTYPE_ZOOM, WPTYPE_NONE,
68
gboolean gradient_enabled;
69
gboolean wallpaper_enabled;
70
orientation_t orientation;
71
wallpaper_type_t wallpaper_type;
76
gchar *wallpaper_filename;
77
gchar *wallpaper_sel_path;
81
gboolean adjust_opacity;
85
struct _BGPreferencesClass
90
GType bg_preferences_get_type (void);
92
GObject *bg_preferences_new (void);
93
GObject *bg_preferences_clone (const BGPreferences *prefs);
95
void bg_preferences_load (BGPreferences *prefs);
97
void bg_preferences_merge_entry (BGPreferences *prefs,
98
const GConfEntry *entry);
100
void bg_preferences_save (BGPreferences *prefs);
102
const gchar *bg_preferences_get_wptype_as_string (wallpaper_type_t wp);
103
const gchar *bg_preferences_get_orientation_as_string (orientation_t o);
104
GType bg_preferences_wptype_get_type (void);
105
GType bg_preferences_orientation_get_type (void);
108
#endif /* __PREFERENCES_H */