From 5563da141e1fd0474f1eeedb967209c55227abae Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 25 Jan 2012 11:59:32 +0000 Subject: 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). --- src/trg-prefs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/trg-prefs.h') 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 { -- cgit v1.2.3