[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:36:06 +0000 (UTC)
commit 08720f644c263a412345a2f40b2982e2a4d503ca
Author: Mukund Sivaraman <muks banu com>
Date: Tue Jul 20 19:05:11 2010 +0530
Remove redundant parent_class variable
gdk/win32/gdkglcontext-win32.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdkglcontext-win32.c b/gdk/win32/gdkglcontext-win32.c
index 5e81ab2..7cf03c6 100644
--- a/gdk/win32/gdkglcontext-win32.c
+++ b/gdk/win32/gdkglcontext-win32.c
@@ -32,8 +32,6 @@ static GdkGLContext *gdk_gl_context_lookup (HGLRC hglrc);
static void gdk_gl_context_impl_win32_class_init (GdkGLContextImplWin32Class *klass);
static void gdk_gl_context_impl_win32_finalize (GObject *object);
-static gpointer parent_class = NULL;
-
G_DEFINE_TYPE (GdkGLContextImplWin32, \
gdk_gl_context_impl_win32, \
GDK_TYPE_GL_CONTEXT)
@@ -50,8 +48,6 @@ gdk_gl_context_impl_win32_class_init (GdkGLContextImplWin32Class *klass)
GDK_GL_NOTE_FUNC_PRIVATE ();
- parent_class = g_type_class_peek_parent (klass);
-
object_class->finalize = gdk_gl_context_impl_win32_finalize;
}
@@ -116,7 +112,7 @@ gdk_gl_context_impl_win32_finalize (GObject *object)
if (impl->share_list != NULL)
g_object_unref (G_OBJECT (impl->share_list));
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (gdk_gl_context_impl_win32_parent_class)->finalize (object);
}
static GdkGLContext *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]