[gtkglext] Remove redundant protos
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglext] Remove redundant protos
- Date: Tue, 20 Jul 2010 15:25:08 +0000 (UTC)
commit de94ee830f113adb622200d3152fec73f5dacf99
Author: Mukund Sivaraman <muks banu com>
Date: Tue Jul 20 20:54:23 2010 +0530
Remove redundant protos
gdk/gdkglwindow.c | 30 ++++++++++++++----------------
1 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/gdk/gdkglwindow.c b/gdk/gdkglwindow.c
index d55617e..38e03c1 100644
--- a/gdk/gdkglwindow.c
+++ b/gdk/gdkglwindow.c
@@ -172,8 +172,6 @@ static void gdk_gl_window_draw_drawable_with_src (GdkDrawable
gint width,
gint height,
GdkDrawable *original_src);
-static void gdk_gl_window_class_init (GdkGLWindowClass *klass);
-static void gdk_gl_window_finalize (GObject *object);
G_DEFINE_TYPE (GdkGLWindow, \
gdk_gl_window, \
@@ -185,6 +183,20 @@ gdk_gl_window_init (GdkGLWindow *self)
}
static void
+gdk_gl_window_finalize (GObject *object)
+{
+ GdkGLWindow *glwindow = GDK_GL_WINDOW (object);
+
+ GDK_GL_NOTE_FUNC_PRIVATE ();
+
+ if (glwindow->drawable != NULL)
+ g_object_remove_weak_pointer (G_OBJECT (glwindow->drawable),
+ (gpointer *) &(glwindow->drawable));
+
+ G_OBJECT_CLASS (gdk_gl_window_parent_class)->finalize (object);
+}
+
+static void
gdk_gl_window_class_init (GdkGLWindowClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -227,20 +239,6 @@ gdk_gl_window_class_init (GdkGLWindowClass *klass)
drawable_class->draw_drawable_with_src = gdk_gl_window_draw_drawable_with_src;
}
-static void
-gdk_gl_window_finalize (GObject *object)
-{
- GdkGLWindow *glwindow = GDK_GL_WINDOW (object);
-
- GDK_GL_NOTE_FUNC_PRIVATE ();
-
- if (glwindow->drawable != NULL)
- g_object_remove_weak_pointer (G_OBJECT (glwindow->drawable),
- (gpointer *) &(glwindow->drawable));
-
- G_OBJECT_CLASS (gdk_gl_window_parent_class)->finalize (object);
-}
-
static GdkGC *
gdk_gl_window_create_gc (GdkDrawable *drawable,
GdkGCValues *values,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]