[gtkglext] Remove redundant parent_class variable



commit 3eab7b71605ca66c923b53a2e199ade49e6fa745
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Jul 20 21:06:14 2010 +0530

    Remove redundant parent_class variable

 gdk/x11/gdkglpixmap-x11.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/x11/gdkglpixmap-x11.c b/gdk/x11/gdkglpixmap-x11.c
index 541dc41..38df279 100644
--- a/gdk/x11/gdkglpixmap-x11.c
+++ b/gdk/x11/gdkglpixmap-x11.c
@@ -45,8 +45,6 @@ static void gdk_gl_pixmap_impl_x11_class_init (GdkGLPixmapImplX11Class *klass);
 static void gdk_gl_pixmap_impl_x11_finalize   (GObject                 *object);
 static void gdk_gl_pixmap_impl_x11_gl_drawable_interface_init (GdkGLDrawableClass *iface);
 
-static gpointer parent_class = NULL;
-
 G_DEFINE_TYPE_EXTENDED (GdkGLPixmapImplX11,
                         gdk_gl_pixmap_impl_x11,
                         GDK_TYPE_GL_PIXMAP,
@@ -67,8 +65,6 @@ gdk_gl_pixmap_impl_x11_class_init (GdkGLPixmapImplX11Class *klass)
 
   GDK_GL_NOTE_FUNC_PRIVATE ();
 
-  parent_class = g_type_class_peek_parent (klass);
-
   object_class->finalize = gdk_gl_pixmap_impl_x11_finalize;
 }
 
@@ -112,7 +108,7 @@ gdk_gl_pixmap_impl_x11_finalize (GObject *object)
 
   g_object_unref (G_OBJECT (impl->glconfig));
 
-  G_OBJECT_CLASS (parent_class)->finalize (object);
+  G_OBJECT_CLASS (gdk_gl_pixmap_impl_x11_parent_class)->finalize (object);
 }
 
 static void



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