~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to panels/datetime/cc-timezone-map.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mto: (206.1.1 oneiric-proposed)
  • mto: This revision was merged to the branch mainline in revision 165.
  • Revision ID: james.westby@ubuntu.com-20110517104727-ky274kr7t5a1nk9r
Tags: upstream-3.0.1.1
ImportĀ upstreamĀ versionĀ 3.0.1.1

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, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 *
 
18
 * Author: Thomas Wood <thomas.wood@intel.com>
 
19
 *
 
20
 */
 
21
 
 
22
 
 
23
#ifndef _CC_TIMEZONE_MAP_H
 
24
#define _CC_TIMEZONE_MAP_H
 
25
 
 
26
#include <gtk/gtk.h>
 
27
#include "tz.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define CC_TYPE_TIMEZONE_MAP cc_timezone_map_get_type()
 
32
 
 
33
#define CC_TIMEZONE_MAP(obj) \
 
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
35
  CC_TYPE_TIMEZONE_MAP, CcTimezoneMap))
 
36
 
 
37
#define CC_TIMEZONE_MAP_CLASS(klass) \
 
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
39
  CC_TYPE_TIMEZONE_MAP, CcTimezoneMapClass))
 
40
 
 
41
#define CC_IS_TIMEZONE_MAP(obj) \
 
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
43
  CC_TYPE_TIMEZONE_MAP))
 
44
 
 
45
#define CC_IS_TIMEZONE_MAP_CLASS(klass) \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
47
  CC_TYPE_TIMEZONE_MAP))
 
48
 
 
49
#define CC_TIMEZONE_MAP_GET_CLASS(obj) \
 
50
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
51
  CC_TYPE_TIMEZONE_MAP, CcTimezoneMapClass))
 
52
 
 
53
typedef struct _CcTimezoneMap CcTimezoneMap;
 
54
typedef struct _CcTimezoneMapClass CcTimezoneMapClass;
 
55
typedef struct _CcTimezoneMapPrivate CcTimezoneMapPrivate;
 
56
 
 
57
struct _CcTimezoneMap
 
58
{
 
59
  GtkWidget parent;
 
60
 
 
61
  CcTimezoneMapPrivate *priv;
 
62
};
 
63
 
 
64
struct _CcTimezoneMapClass
 
65
{
 
66
  GtkWidgetClass parent_class;
 
67
};
 
68
 
 
69
GType cc_timezone_map_get_type (void) G_GNUC_CONST;
 
70
 
 
71
CcTimezoneMap *cc_timezone_map_new (void);
 
72
 
 
73
gboolean cc_timezone_map_set_timezone (CcTimezoneMap *map,
 
74
                                       const gchar   *timezone);
 
75
TzLocation * cc_timezone_map_get_location (CcTimezoneMap *map);
 
76
 
 
77
G_END_DECLS
 
78
 
 
79
#endif /* _CC_TIMEZONE_MAP_H */