[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 17:39:00 +0000 (UTC)
commit 6230d9acc2805058493f0728be6c8b91f216c7d3
Author: Mukund Sivaraman <muks banu com>
Date: Tue Jul 20 23:06:09 2010 +0530
Remove redundant parent_class variable
gdk/win32/gdkglwindow-win32.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdkglwindow-win32.c b/gdk/win32/gdkglwindow-win32.c
index c7e13a9..aa0179d 100644
--- a/gdk/win32/gdkglwindow-win32.c
+++ b/gdk/win32/gdkglwindow-win32.c
@@ -45,8 +45,6 @@ static void gdk_gl_window_impl_win32_class_init (GdkGLWindowImplWin32Class *klas
static void gdk_gl_window_impl_win32_finalize (GObject *object);
static void gdk_gl_window_impl_win32_gl_drawable_interface_init (GdkGLDrawableClass *iface);
-static gpointer parent_class = NULL;
-
G_DEFINE_TYPE_EXTENDED (GdkGLWindowImplWin32,
gdk_gl_window_impl_win32,
GDK_TYPE_GL_WINDOW,
@@ -67,8 +65,6 @@ gdk_gl_window_impl_win32_class_init (GdkGLWindowImplWin32Class *klass)
GDK_GL_NOTE_FUNC_PRIVATE ();
- parent_class = g_type_class_peek_parent (klass);
-
object_class->finalize = gdk_gl_window_impl_win32_finalize;
}
@@ -119,7 +115,7 @@ gdk_gl_window_impl_win32_finalize (GObject *object)
g_object_unref (G_OBJECT (impl->glconfig));
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (gdk_gl_window_impl_win32_parent_class)->finalize (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]