From: Tilman Sauerbeck Date: Sun, 22 Apr 2007 14:26:18 +0000 (+0200) Subject: Clean up struct/type definitions. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=7b2bc2306cc71d72f4416069c4551b69de8f3c5f;p=raktpdf.git Clean up struct/type definitions. --- diff --git a/src/rakt-window.c b/src/rakt-window.c index 59dfca4..7cea822 100644 --- a/src/rakt-window.c +++ b/src/rakt-window.c @@ -30,9 +30,7 @@ #include "rakt-window.h" -typedef struct RaktWindowPriv RaktWindowPriv; - -struct RaktWindowPriv { +typedef struct { GtkWidget *content_vbox; /* Menu & toolbar */ @@ -44,7 +42,7 @@ struct RaktWindowPriv { GdkPixbuf *pixbuf; PopplerDocument *document; gint page_no; -}; +} RaktWindowPriv; static void window_finalize (GObject *object); diff --git a/src/rakt-window.h b/src/rakt-window.h index 194c64f..4c7676f 100644 --- a/src/rakt-window.h +++ b/src/rakt-window.h @@ -37,17 +37,14 @@ G_BEGIN_DECLS #define RAKT_WINDOW_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), RAKT_TYPE_WINDOW, RaktWindowClass)) -typedef struct RaktWindow RaktWindow; -typedef struct RaktWindowClass RaktWindowClass; - -struct RaktWindow { +typedef struct { GtkWindow parent_instance; -}; +} RaktWindow; -struct RaktWindowClass { +typedef struct { GtkWindowClass parent_class; void (*quitting) (RaktWindow *window); -}; +} RaktWindowClass; GType rakt_window_get_type (void); GtkWidget *rakt_window_new (void);