aboutsummaryrefslogtreecommitdiff
path: root/src/timezone-completion.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-06 16:39:44 -0500
committerTed Gould <ted@gould.cx>2011-09-06 16:39:44 -0500
commitee90397388175fd7155901ea12c6629bb27125ff (patch)
tree8256d0dc457b694f7a745d4c43c4dff8f0951201 /src/timezone-completion.h
parent372e5dc767644e587897cdce599c4b0f66765f50 (diff)
parent46ab5ac5bcb2811effd36f4418726421aba1052b (diff)
downloadayatana-indicator-datetime-ee90397388175fd7155901ea12c6629bb27125ff.tar.gz
ayatana-indicator-datetime-ee90397388175fd7155901ea12c6629bb27125ff.tar.bz2
ayatana-indicator-datetime-ee90397388175fd7155901ea12c6629bb27125ff.zip
Some optimizations to the private pointers and a const
Diffstat (limited to 'src/timezone-completion.h')
-rw-r--r--src/timezone-completion.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/timezone-completion.h b/src/timezone-completion.h
index fdfb234..1592d79 100644
--- a/src/timezone-completion.h
+++ b/src/timezone-completion.h
@@ -34,15 +34,18 @@ G_BEGIN_DECLS
#define IS_TIMEZONE_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TIMEZONE_COMPLETION_TYPE))
#define TIMEZONE_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TIMEZONE_COMPLETION_TYPE, TimezoneCompletionClass))
-typedef struct _TimezoneCompletion TimezoneCompletion;
-typedef struct _TimezoneCompletionClass TimezoneCompletionClass;
-
-struct _TimezoneCompletionClass {
- GtkEntryCompletionClass parent_class;
-};
+typedef struct _TimezoneCompletion TimezoneCompletion;
+typedef struct _TimezoneCompletionPrivate TimezoneCompletionPrivate;
+typedef struct _TimezoneCompletionClass TimezoneCompletionClass;
struct _TimezoneCompletion {
GtkEntryCompletion parent;
+
+ TimezoneCompletionPrivate *priv;
+};
+
+struct _TimezoneCompletionClass {
+ GtkEntryCompletionClass parent_class;
};
#define TIMEZONE_COMPLETION_ZONE 0
@@ -53,7 +56,7 @@ struct _TimezoneCompletion {
#define TIMEZONE_COMPLETION_LATITUDE 5
#define TIMEZONE_COMPLETION_LAST 6
-GType timezone_completion_get_type (void);
+GType timezone_completion_get_type (void) G_GNUC_CONST;
TimezoneCompletion * timezone_completion_new ();
void timezone_completion_watch_entry (TimezoneCompletion * completion, GtkEntry * entry);