[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 13:21:28 +0000 (UTC)
commit 43c9c42db99586079b79dc2e90be222517b87f5a
Author: Mukund Sivaraman <muks banu com>
Date: Tue Jul 20 18:50:02 2010 +0530
Remove redundant parent_class variable
gdk/win32/gdkglconfig-win32.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdkglconfig-win32.c b/gdk/win32/gdkglconfig-win32.c
index f53ef5d..565b51a 100644
--- a/gdk/win32/gdkglconfig-win32.c
+++ b/gdk/win32/gdkglconfig-win32.c
@@ -29,8 +29,6 @@
static void gdk_gl_config_impl_win32_class_init (GdkGLConfigImplWin32Class *klass);
static void gdk_gl_config_impl_win32_finalize (GObject *object);
-static gpointer parent_class = NULL;
-
G_DEFINE_TYPE (GdkGLConfigImplWin32, \
gdk_gl_config_impl_win32, \
GDK_TYPE_GL_CONFIG)
@@ -47,8 +45,6 @@ gdk_gl_config_impl_win32_class_init (GdkGLConfigImplWin32Class *klass)
GDK_GL_NOTE_FUNC_PRIVATE ();
- parent_class = g_type_class_peek_parent (klass);
-
object_class->finalize = gdk_gl_config_impl_win32_finalize;
}
@@ -61,7 +57,7 @@ gdk_gl_config_impl_win32_finalize (GObject *object)
g_object_unref (G_OBJECT (impl->colormap));
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (gdk_gl_config_impl_win32_parent_class)->finalize (object);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]