[gthumb] init object data to NULL, removed unused private data



commit 58131915078245c1af11fa1fe6ced0f13583d2a5
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Mar 14 21:10:57 2010 +0100

    init object data to NULL, removed unused private data

 extensions/flicker/flickr-photoset.c |    8 ++++++++
 extensions/flicker/flickr-photoset.h |    2 --
 extensions/flicker/flickr-user.c     |    2 ++
 extensions/flicker/flickr-user.h     |    2 --
 4 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/extensions/flicker/flickr-photoset.c b/extensions/flicker/flickr-photoset.c
index e9f9244..a2324cf 100644
--- a/extensions/flicker/flickr-photoset.c
+++ b/extensions/flicker/flickr-photoset.c
@@ -134,6 +134,14 @@ flickr_photoset_dom_domizable_interface_init (DomDomizableIface *iface)
 static void
 flickr_photoset_instance_init (FlickrPhotoset *self)
 {
+	self->id = NULL;
+	self->title = NULL;
+	self->description = NULL;
+	self->primary = NULL;
+	self->secret = NULL;
+	self->server = NULL;
+	self->farm = NULL;
+	self->url = NULL;
 }
 
 
diff --git a/extensions/flicker/flickr-photoset.h b/extensions/flicker/flickr-photoset.h
index 3450128..7ba5ce1 100644
--- a/extensions/flicker/flickr-photoset.h
+++ b/extensions/flicker/flickr-photoset.h
@@ -37,11 +37,9 @@ G_BEGIN_DECLS
 
 typedef struct _FlickrPhotoset FlickrPhotoset;
 typedef struct _FlickrPhotosetClass FlickrPhotosetClass;
-typedef struct _FlickrPhotosetPrivate FlickrPhotosetPrivate;
 
 struct _FlickrPhotoset {
 	GObject parent_instance;
-	FlickrPhotosetPrivate *priv;
 
 	char *id;
 	char *title;
diff --git a/extensions/flicker/flickr-user.c b/extensions/flicker/flickr-user.c
index 41e4a1e..10b6003 100644
--- a/extensions/flicker/flickr-user.c
+++ b/extensions/flicker/flickr-user.c
@@ -116,6 +116,8 @@ flickr_user_dom_domizable_interface_init (DomDomizableIface *iface)
 static void
 flickr_user_instance_init (FlickrUser *self)
 {
+	self->id = NULL;
+	self->username = NULL;
 }
 
 
diff --git a/extensions/flicker/flickr-user.h b/extensions/flicker/flickr-user.h
index 0c6a77d..a5389a6 100644
--- a/extensions/flicker/flickr-user.h
+++ b/extensions/flicker/flickr-user.h
@@ -37,11 +37,9 @@ G_BEGIN_DECLS
 
 typedef struct _FlickrUser FlickrUser;
 typedef struct _FlickrUserClass FlickrUserClass;
-typedef struct _FlickrUserPrivate FlickrUserPrivate;
 
 struct _FlickrUser {
 	GObject parent_instance;
-	FlickrUserPrivate *priv;
 
 	char     *id;
 	gboolean  is_pro;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]