~mterry/indicator-datetime/fix-show-clock

« back to all changes in this revision

Viewing changes to src/timezone-completion.h

  • Committer: David Barth
  • Date: 2011-02-25 17:01:20 UTC
  • mfrom: (28.6.40 clock-prefs)
  • Revision ID: david.barth@canonical.com-20110225170120-10376wecmiat132u
merging in mterry's branch with the new preferences dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; coding: utf-8; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
 
 
3
Copyright 2011 Canonical Ltd.
 
4
 
 
5
Authors:
 
6
    Michael Terry <michael.terry@canonical.com>
 
7
 
 
8
This program is free software: you can redistribute it and/or modify it 
 
9
under the terms of the GNU General Public License version 3, as published 
 
10
by the Free Software Foundation.
 
11
 
 
12
This program is distributed in the hope that it will be useful, but 
 
13
WITHOUT ANY WARRANTY; without even the implied warranties of 
 
14
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
15
PURPOSE.  See the GNU General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU General Public License along 
 
18
with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
*/
 
20
 
 
21
#ifndef __TIMEZONE_COMPLETION_H__
 
22
#define __TIMEZONE_COMPLETION_H__
 
23
 
 
24
#include <glib.h>
 
25
#include <glib-object.h>
 
26
#include <gtk/gtk.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define TIMEZONE_COMPLETION_TYPE            (timezone_completion_get_type ())
 
31
#define TIMEZONE_COMPLETION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TIMEZONE_COMPLETION_TYPE, TimezoneCompletion))
 
32
#define TIMEZONE_COMPLETION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TIMEZONE_COMPLETION_TYPE, TimezoneCompletionClass))
 
33
#define IS_TIMEZONE_COMPLETION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TIMEZONE_COMPLETION_TYPE))
 
34
#define IS_TIMEZONE_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TIMEZONE_COMPLETION_TYPE))
 
35
#define TIMEZONE_COMPLETION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), TIMEZONE_COMPLETION_TYPE, TimezoneCompletionClass))
 
36
 
 
37
typedef struct _TimezoneCompletion      TimezoneCompletion;
 
38
typedef struct _TimezoneCompletionClass TimezoneCompletionClass;
 
39
 
 
40
struct _TimezoneCompletionClass {
 
41
  GtkEntryCompletionClass parent_class;
 
42
};
 
43
 
 
44
struct _TimezoneCompletion {
 
45
  GtkEntryCompletion parent;
 
46
};
 
47
 
 
48
#define TIMEZONE_COMPLETION_ZONE      0
 
49
#define TIMEZONE_COMPLETION_NAME      1
 
50
#define TIMEZONE_COMPLETION_ADMIN1    2
 
51
#define TIMEZONE_COMPLETION_COUNTRY   3
 
52
#define TIMEZONE_COMPLETION_LONGITUDE 4
 
53
#define TIMEZONE_COMPLETION_LATITUDE  5
 
54
#define TIMEZONE_COMPLETION_LAST      6
 
55
 
 
56
GType timezone_completion_get_type (void);
 
57
TimezoneCompletion * timezone_completion_new ();
 
58
void timezone_completion_watch_entry (TimezoneCompletion * completion, GtkEntry * entry);
 
59
 
 
60
G_END_DECLS
 
61
 
 
62
#endif /* __TIMEZONE_COMPLETION_H__ */
 
63