[gtkglext] Remove gdk_gl_context_destroy()



commit cb3316e91604a97bb195eac563cc7e218f56e421
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Jul 19 15:33:30 2010 +0530

    Remove gdk_gl_context_destroy()
    
    Use g_object_unref() on the object instead.

 gdk/gdkglcontext.c |   16 ----------------
 gdk/gdkglcontext.h |    2 --
 gtk/gtkglwidget.c  |    2 +-
 3 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index f3e49b5..effffe8 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -106,19 +106,3 @@ gdk_gl_context_new (GdkGLDrawable *gldrawable,
                                                                      direct,
                                                                      render_type);
 }
-
-/**
- * gdk_gl_context_destroy:
- * @glcontext: a #GdkGLContext.
- *
- * Destroys the OpenGL resources associated with @glcontext and
- * decrements @glcontext's reference count.
- **/
-void
-gdk_gl_context_destroy (GdkGLContext *glcontext)
-{
-  g_return_if_fail (GDK_IS_GL_CONTEXT (glcontext));
-
-  _gdk_gl_context_destroy (glcontext);
-  g_object_unref (G_OBJECT (glcontext));
-}
diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h
index ade9d27..5ff68b6 100644
--- a/gdk/gdkglcontext.h
+++ b/gdk/gdkglcontext.h
@@ -50,8 +50,6 @@ GdkGLContext  *gdk_gl_context_new             (GdkGLDrawable *gldrawable,
                                                gboolean       direct,
                                                int            render_type);
 
-void           gdk_gl_context_destroy         (GdkGLContext  *glcontext);
-
 gboolean       gdk_gl_context_copy            (GdkGLContext  *glcontext,
                                                GdkGLContext  *src,
                                                unsigned long  mask);
diff --git a/gtk/gtkglwidget.c b/gtk/gtkglwidget.c
index 2caef08..7381739 100644
--- a/gtk/gtkglwidget.c
+++ b/gtk/gtkglwidget.c
@@ -150,7 +150,7 @@ gtk_gl_widget_unrealize (GtkWidget       *widget,
 
   if (private->glcontext != NULL)
     {
-      gdk_gl_context_destroy (private->glcontext);
+      g_object_unref (private->glcontext);
       private->glcontext = NULL;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]