1
/* bg-wallpapers-source.h */
3
* Copyright (C) 2010 Intel, Inc
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
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 Place - Suite 330, Boston, MA 02111-1307, USA.
19
* Author: Thomas Wood <thomas.wood@intel.com>
24
#ifndef _BG_WALLPAPERS_SOURCE_H
25
#define _BG_WALLPAPERS_SOURCE_H
28
#include "bg-source.h"
32
#define BG_TYPE_WALLPAPERS_SOURCE bg_wallpapers_source_get_type()
34
#define BG_WALLPAPERS_SOURCE(obj) \
35
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36
BG_TYPE_WALLPAPERS_SOURCE, BgWallpapersSource))
38
#define BG_WALLPAPERS_SOURCE_CLASS(klass) \
39
(G_TYPE_CHECK_CLASS_CAST ((klass), \
40
BG_TYPE_WALLPAPERS_SOURCE, BgWallpapersSourceClass))
42
#define BG_IS_WALLPAPERS_SOURCE(obj) \
43
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
44
BG_TYPE_WALLPAPERS_SOURCE))
46
#define BG_IS_WALLPAPERS_SOURCE_CLASS(klass) \
47
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
48
BG_TYPE_WALLPAPERS_SOURCE))
50
#define BG_WALLPAPERS_SOURCE_GET_CLASS(obj) \
51
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
52
BG_TYPE_WALLPAPERS_SOURCE, BgWallpapersSourceClass))
54
typedef struct _BgWallpapersSource BgWallpapersSource;
55
typedef struct _BgWallpapersSourceClass BgWallpapersSourceClass;
56
typedef struct _BgWallpapersSourcePrivate BgWallpapersSourcePrivate;
58
struct _BgWallpapersSource
62
BgWallpapersSourcePrivate *priv;
65
struct _BgWallpapersSourceClass
67
BgSourceClass parent_class;
70
GType bg_wallpapers_source_get_type (void) G_GNUC_CONST;
72
BgWallpapersSource *bg_wallpapers_source_new (void);
73
GtkListStore *bg_wallpapers_source_get_liststore (BgWallpapersSource *source);
77
#endif /* _BG_WALLPAPERS_SOURCE_H */