Move Debug Code Out
This commit is contained in:
parent
435bc154ef
commit
58787016ce
13
src/main.c
13
src/main.c
@ -32,26 +32,15 @@
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
static GLogWriterOutput
|
||||
zenity_suppress_log (GLogLevelFlags log_level, const GLogField *fields,
|
||||
gsize n_fields, gpointer user_data) {
|
||||
return G_LOG_WRITER_HANDLED;
|
||||
}
|
||||
|
||||
gint
|
||||
main (gint argc, gchar **argv) {
|
||||
ZenityParsingOptions *results;
|
||||
gint retval;
|
||||
const char *is_debug;
|
||||
gint retval;
|
||||
|
||||
#ifdef HAVE_LOCALE_H
|
||||
setlocale (LC_ALL, "");
|
||||
#endif
|
||||
|
||||
is_debug = getenv ("ZENITY_DEBUG");
|
||||
if (is_debug == NULL || strlen (is_debug) < 1)
|
||||
g_log_set_writer_func (zenity_suppress_log, NULL, NULL);
|
||||
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
results = zenity_option_parse (argc, argv);
|
||||
|
Loading…
Reference in New Issue
Block a user