[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 15:25:03 +0000 (UTC)
commit 4693711e132d7d53fd417ae2075a57ff0a3118a9
Author: Mukund Sivaraman <muks banu com>
Date: Tue Jul 20 20:52:59 2010 +0530
Remove redundant parent_class variable
gdk/gdkglwindow.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkglwindow.c b/gdk/gdkglwindow.c
index 6fe8728..d55617e 100644
--- a/gdk/gdkglwindow.c
+++ b/gdk/gdkglwindow.c
@@ -175,8 +175,6 @@ static void gdk_gl_window_draw_drawable_with_src (GdkDrawable
static void gdk_gl_window_class_init (GdkGLWindowClass *klass);
static void gdk_gl_window_finalize (GObject *object);
-static gpointer parent_class = NULL;
-
G_DEFINE_TYPE (GdkGLWindow, \
gdk_gl_window, \
GDK_TYPE_DRAWABLE)
@@ -194,8 +192,6 @@ gdk_gl_window_class_init (GdkGLWindowClass *klass)
GDK_GL_NOTE_FUNC_PRIVATE ();
- parent_class = g_type_class_peek_parent (klass);
-
object_class->finalize = gdk_gl_window_finalize;
drawable_class->create_gc = gdk_gl_window_create_gc;
@@ -242,7 +238,7 @@ gdk_gl_window_finalize (GObject *object)
g_object_remove_weak_pointer (G_OBJECT (glwindow->drawable),
(gpointer *) &(glwindow->drawable));
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (gdk_gl_window_parent_class)->finalize (object);
}
static GdkGC *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]