[evince] [totem-scrsaver] Do not peek parent class twice



commit 640d136566f9a4a65ffff13207e63e20cc167a4c
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat May 22 19:11:11 2010 +0200

    [totem-scrsaver] Do not peek parent class twice

 cut-n-paste/totem-screensaver/totem-scrsaver.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/cut-n-paste/totem-screensaver/totem-scrsaver.c b/cut-n-paste/totem-screensaver/totem-scrsaver.c
index 64a7844..efa2b31 100644
--- a/cut-n-paste/totem-screensaver/totem-scrsaver.c
+++ b/cut-n-paste/totem-screensaver/totem-scrsaver.c
@@ -45,7 +45,6 @@
 
 #define XSCREENSAVER_MIN_TIMEOUT 60
 
-static GObjectClass *parent_class = NULL;
 static void totem_scrsaver_finalize   (GObject *object);
 
 struct TotemScrsaverPrivate {
@@ -346,8 +345,6 @@ totem_scrsaver_class_init (TotemScrsaverClass *klass)
 {
 	GObjectClass *object_class = G_OBJECT_CLASS (klass);
 
-	parent_class = g_type_class_peek_parent (klass);
-
 	object_class->finalize = totem_scrsaver_finalize;
 }
 
@@ -449,5 +446,5 @@ totem_scrsaver_finalize (GObject *object)
 	{}
 #endif
 
-        G_OBJECT_CLASS (parent_class)->finalize (object);
+        G_OBJECT_CLASS (totem_scrsaver_parent_class)->finalize (object);
 }



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