~ubuntu-branches/debian/squeeze/gnome-terminal/squeeze

« back to all changes in this revision

Viewing changes to src/terminal-debug.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2009-06-27 14:53:33 UTC
  • mfrom: (1.3.31 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627145333-b6malq0lcf7yziyv
Tags: 2.26.2-2
02_let_gconf_autostart.patch: Don’t exit if there is no GConf daemon 
running. Instead, let dbus-daemon and gconfd be autostarted as they 
should be if this is needed. Thanks to Sean Finney for the 
suggestion. Closes: #531734 and some duplicates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2002,2003 Red Hat, Inc.
 
3
 *
 
4
 * This is free software; you can redistribute it and/or modify it under
 
5
 * the terms of the GNU Library General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public
 
15
 * License along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 */
 
18
 
 
19
#include <config.h>
 
20
 
 
21
#include <glib.h>
 
22
 
 
23
#include "terminal-debug.h"
 
24
 
 
25
TerminalDebugFlags _terminal_debug_flags;
 
26
 
 
27
void
 
28
_terminal_debug_init(void)
 
29
{
 
30
#ifdef GNOME_ENABLE_DEBUG
 
31
  const GDebugKey keys[] = {
 
32
    { "accels",    TERMINAL_DEBUG_ACCELS    },
 
33
    { "encodings", TERMINAL_DEBUG_ENCODINGS },
 
34
    { "factory",   TERMINAL_DEBUG_FACTORY   },
 
35
    { "geometry",  TERMINAL_DEBUG_GEOMETRY  },
 
36
    { "profile",   TERMINAL_DEBUG_PROFILE   }
 
37
  };
 
38
 
 
39
  _terminal_debug_flags = g_parse_debug_string (g_getenv ("GNOME_TERMINAL_DEBUG"),
 
40
                                                keys, G_N_ELEMENTS (keys));
 
41
#endif /* GNOME_ENABLE_DEBUG */
 
42
}
 
43