summaryrefslogtreecommitdiff
path: root/src/trg-main-window.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-main-window.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-main-window.h')
-rw-r--r--src/trg-main-window.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trg-main-window.h b/src/trg-main-window.h
index 0c51f67..999ca38 100644
--- a/src/trg-main-window.h
+++ b/src/trg-main-window.h
@@ -45,8 +45,11 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE ((klass), TRG_TYPE_MAIN_WINDOW))
#define TRG_MAIN_WINDOW_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), TRG_TYPE_MAIN_WINDOW, TrgMainWindowClass))
- typedef struct {
+typedef struct _TrgMainWindowPrivate TrgMainWindowPrivate;
+
+typedef struct {
GtkWindow parent;
+ TrgMainWindowPrivate *priv;
} TrgMainWindow;
typedef struct {