summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-08-04 17:17:46 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-08-04 17:17:46 +0000
commit7261e61f292d51a670f9bb10cb9cc56e776cc18a (patch)
treea0f222c7edf71928bcf835bfb8410fc3bae71392 /gdk/gdk.c
parent25536fafd0c5ecf97aec71ece28e31d406398600 (diff)
downloadgtk+-7261e61f292d51a670f9bb10cb9cc56e776cc18a.tar.gz
call gdk_rgb_set_verbose(TRUE) if "gdkrgb" is in the debug flags.
2008-08-04 Michael Natterer <mitch@imendio.com> * gdk/gdk.c (gdk_parse_args): call gdk_rgb_set_verbose(TRUE) if "gdkrgb" is in the debug flags. * gdk/gdkrgb.c (gdk_rgb_init): remove setting the verbose flag here, this function is deprecated and the debug flag didn't work when using GDK properly. svn path=/trunk/; revision=20981
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 969869ffd6..4bb73c2924 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -233,7 +233,10 @@ gdk_parse_args (int *argc,
g_error_free (error);
}
g_option_context_free (option_context);
-
+
+ if (_gdk_debug_flags && GDK_DEBUG_GDKRGB)
+ gdk_rgb_set_verbose (TRUE);
+
GDK_NOTE (MISC, g_message ("progname: \"%s\"", g_get_prgname ()));
}