~kelemeng/indicator-datetime/bug845473

« back to all changes in this revision

Viewing changes to src/timezone-completion.h

  • Committer: Ted Gould
  • Date: 2011-09-06 21:39:44 UTC
  • mfrom: (127.3.3 get_priv)
  • Revision ID: ted@gould.cx-20110906213944-cpe82zvmnyk48e9m
Some optimizations to the private pointers and a const

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#define IS_TIMEZONE_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TIMEZONE_COMPLETION_TYPE))
35
35
#define TIMEZONE_COMPLETION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), TIMEZONE_COMPLETION_TYPE, TimezoneCompletionClass))
36
36
 
37
 
typedef struct _TimezoneCompletion      TimezoneCompletion;
38
 
typedef struct _TimezoneCompletionClass TimezoneCompletionClass;
 
37
typedef struct _TimezoneCompletion             TimezoneCompletion;
 
38
typedef struct _TimezoneCompletionPrivate      TimezoneCompletionPrivate;
 
39
typedef struct _TimezoneCompletionClass        TimezoneCompletionClass;
 
40
 
 
41
struct _TimezoneCompletion {
 
42
  GtkEntryCompletion parent;
 
43
 
 
44
  TimezoneCompletionPrivate *priv;
 
45
};
39
46
 
40
47
struct _TimezoneCompletionClass {
41
48
  GtkEntryCompletionClass parent_class;
42
49
};
43
50
 
44
 
struct _TimezoneCompletion {
45
 
  GtkEntryCompletion parent;
46
 
};
47
 
 
48
51
#define TIMEZONE_COMPLETION_ZONE      0
49
52
#define TIMEZONE_COMPLETION_NAME      1
50
53
#define TIMEZONE_COMPLETION_ADMIN1    2
53
56
#define TIMEZONE_COMPLETION_LATITUDE  5
54
57
#define TIMEZONE_COMPLETION_LAST      6
55
58
 
56
 
GType timezone_completion_get_type (void);
 
59
GType timezone_completion_get_type (void) G_GNUC_CONST;
57
60
TimezoneCompletion * timezone_completion_new ();
58
61
void timezone_completion_watch_entry (TimezoneCompletion * completion, GtkEntry * entry);
59
62