[gtkglext] Remove redundant parent_class variable
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglext] Remove redundant parent_class variable
- Date: Tue, 20 Jul 2010 09:36:38 +0000 (UTC)
commit 2427b7dbc9541398819584f7d87c7ea0affb9016
Author: Mukund Sivaraman <muks banu com>
Date: Tue Jul 20 15:05:00 2010 +0530
Remove redundant parent_class variable
gdk/x11/gdkglconfig-x11.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/x11/gdkglconfig-x11.c b/gdk/x11/gdkglconfig-x11.c
index 49878a2..7660d81 100644
--- a/gdk/x11/gdkglconfig-x11.c
+++ b/gdk/x11/gdkglconfig-x11.c
@@ -44,8 +44,6 @@
static void gdk_gl_config_impl_x11_class_init (GdkGLConfigImplX11Class *klass);
static void gdk_gl_config_impl_x11_finalize (GObject *object);
-static gpointer parent_class = NULL;
-
G_DEFINE_TYPE (GdkGLConfigImplX11, \
gdk_gl_config_impl_x11, \
GDK_TYPE_GL_CONFIG)
@@ -62,8 +60,6 @@ gdk_gl_config_impl_x11_class_init (GdkGLConfigImplX11Class *klass)
GDK_GL_NOTE_FUNC_PRIVATE ();
- parent_class = g_type_class_peek_parent (klass);
-
object_class->finalize = gdk_gl_config_impl_x11_finalize;
}
@@ -78,7 +74,7 @@ gdk_gl_config_impl_x11_finalize (GObject *object)
g_object_unref (G_OBJECT (impl->colormap));
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (gdk_gl_config_impl_x11_parent_class)->finalize (object);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]