summaryrefslogtreecommitdiff
path: root/src/trg-prefs.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-25 11:59:32 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-25 11:59:32 +0000
commit5563da141e1fd0474f1eeedb967209c55227abae (patch)
tree79edb6566aecd22050117f9728b17e40156fd093 /src/trg-prefs.h
parent4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff)
issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements).
Diffstat (limited to 'src/trg-prefs.h')
-rw-r--r--src/trg-prefs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trg-prefs.h b/src/trg-prefs.h
index 96b56b5..e0eba8e 100644
--- a/src/trg-prefs.h
+++ b/src/trg-prefs.h
@@ -77,7 +77,6 @@
#define TRG_PREFS_KEY_LAST_ADD_DESTINATION "last-add-destination"
#define TRG_PREFS_KEY_DESTINATIONS_SUBKEY_DIR "dir"
-
#define TRG_PREFS_NOFLAGS (1 << 0) /* 0x00 */
#define TRG_PREFS_GLOBAL (1 << 1) /* 0x01 */
#define TRG_PREFS_PROFILE (1 << 2) /* 0x02 */
@@ -85,6 +84,8 @@
#define TRG_PREFS_NEWNODE (1 << 4) /* 0x08 */
#define TRG_PREFS_REPLACENODE (1 << 5) /* 0x16 */
+typedef struct _TrgPrefsPrivate TrgPrefsPrivate;
+
G_BEGIN_DECLS
#define TRG_TYPE_PREFS trg_prefs_get_type()
#define TRG_PREFS(obj) \
@@ -99,6 +100,7 @@ G_BEGIN_DECLS
(G_TYPE_INSTANCE_GET_CLASS ((obj), TRG_TYPE_PREFS, TrgPrefsClass))
typedef struct {
GObject parent;
+ TrgPrefsPrivate *priv;
} TrgPrefs;
typedef struct {