[gtkglext] Make gdk_gl_parse_args() return nothing



commit 9da9dba7384988e17fd076aae86066868c062b73
Author: Mukund Sivaraman <muks banu com>
Date:   Wed Jul 21 20:01:23 2010 +0530

    Make gdk_gl_parse_args() return nothing

 gdk/gdkglinit.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/gdk/gdkglinit.c b/gdk/gdkglinit.c
index dac881a..a2c72fa 100644
--- a/gdk/gdkglinit.c
+++ b/gdk/gdkglinit.c
@@ -59,14 +59,14 @@ static const guint gdk_gl_ndebug_keys = G_N_ELEMENTS (gdk_gl_debug_keys);
  *
  * Return value: %TRUE if initialization succeeded, otherwise %FALSE.
  **/
-static gboolean
+static void
 gdk_gl_parse_args (int    *argc,
                    char ***argv)
 {
   const gchar *env_string;
 
   if (gdk_gl_initialized)
-    return TRUE;
+    return;
 
   env_string = g_getenv ("GDK_GL_NO_STANDARD_COLORMAP");
   if (env_string != NULL)
@@ -175,8 +175,6 @@ gdk_gl_parse_args (int    *argc,
 
   /* Set the 'initialized' flag. */
   gdk_gl_initialized = TRUE;
-
-  return TRUE;
 }
 
 /**
@@ -203,11 +201,7 @@ gdk_gl_init_check (int    *argc,
                    char ***argv)
 {
   /* Parse args and init GdkGLExt library. */
-  if (!gdk_gl_parse_args (argc, argv))
-    {
-      g_warning ("GdkGLExt library initialization fails.");
-      return FALSE;
-    }
+  gdk_gl_parse_args (argc, argv);
 
   /* Is OpenGL supported? */
   if (!gdk_gl_query_extension ())



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