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-main-window.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/trg-main-window.h') 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 { -- cgit v1.2.3