~ubuntu-branches/ubuntu/trusty/unity-control-center/trusty

« back to all changes in this revision

Viewing changes to panels/appearance/bg-source.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-01-08 16:29:18 UTC
  • Revision ID: package-import@ubuntu.com-20140108162918-g29dd08tr913y2qh
Tags: upstream-14.04.0
ImportĀ upstreamĀ versionĀ 14.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Intel, Inc
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Author: Thomas Wood <thomas.wood@intel.com>
 
18
 *
 
19
 */
 
20
 
 
21
#ifndef _BG_SOURCE_H
 
22
#define _BG_SOURCE_H
 
23
 
 
24
#include <gtk/gtk.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define THUMBNAIL_WIDTH 48
 
29
#define THUMBNAIL_HEIGHT 48
 
30
 
 
31
#define BG_TYPE_SOURCE bg_source_get_type()
 
32
 
 
33
#define BG_SOURCE(obj) \
 
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
35
  BG_TYPE_SOURCE, BgSource))
 
36
 
 
37
#define BG_SOURCE_CLASS(klass) \
 
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
39
  BG_TYPE_SOURCE, BgSourceClass))
 
40
 
 
41
#define BG_IS_SOURCE(obj) \
 
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
43
  BG_TYPE_SOURCE))
 
44
 
 
45
#define BG_IS_SOURCE_CLASS(klass) \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
47
  BG_TYPE_SOURCE))
 
48
 
 
49
#define BG_SOURCE_GET_CLASS(obj) \
 
50
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
51
  BG_TYPE_SOURCE, BgSourceClass))
 
52
 
 
53
typedef struct _BgSource BgSource;
 
54
typedef struct _BgSourceClass BgSourceClass;
 
55
typedef struct _BgSourcePrivate BgSourcePrivate;
 
56
 
 
57
struct _BgSource
 
58
{
 
59
  GObject parent;
 
60
 
 
61
  BgSourcePrivate *priv;
 
62
};
 
63
 
 
64
struct _BgSourceClass
 
65
{
 
66
  GObjectClass parent_class;
 
67
};
 
68
 
 
69
GType bg_source_get_type (void) G_GNUC_CONST;
 
70
 
 
71
GtkListStore* bg_source_get_liststore (BgSource *source);
 
72
 
 
73
G_END_DECLS
 
74
 
 
75
#endif /* _BG_SOURCE_H */