[gtkglext] Make gtk_gl_parse_args() return nothing
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglext] Make gtk_gl_parse_args() return nothing
- Date: Wed, 21 Jul 2010 14:41:59 +0000 (UTC)
commit 0c85af3e633df1828f583dbc765c44db25ac6b0e
Author: Mukund Sivaraman <muks banu com>
Date: Wed Jul 21 20:10:24 2010 +0530
Make gtk_gl_parse_args() return nothing
gtk/gtkglinit.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkglinit.c b/gtk/gtkglinit.c
index d196c22..13c1280 100644
--- a/gtk/gtkglinit.c
+++ b/gtk/gtkglinit.c
@@ -57,14 +57,14 @@ static const guint gtk_gl_ndebug_keys = G_N_ELEMENTS (gtk_gl_debug_keys);
*
* Return value: %TRUE if initialization succeeded, otherwise %FALSE.
**/
-static gboolean
+static void
gtk_gl_parse_args (int *argc,
char ***argv)
{
const gchar *env_string;
if (gtk_gl_initialized)
- return TRUE;
+ return;
/*
* If window manager doesn't watch the WM_COLORMAP_WINDOWS property on
@@ -167,8 +167,6 @@ gtk_gl_parse_args (int *argc,
/* Set the 'initialized' flag. */
gtk_gl_initialized = TRUE;
-
- return TRUE;
}
/**
@@ -199,11 +197,7 @@ gtk_gl_init_check (int *argc,
return FALSE;
/* Parse args and init GtkGLExt library. */
- if (!gtk_gl_parse_args (argc, argv))
- {
- g_warning ("GtkGLExt library initialization fails.");
- return FALSE;
- }
+ gtk_gl_parse_args (argc, argv);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]