File: panel-debug.h

package info (click to toggle)
xfce4-panel 4.20.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,212 kB
  • sloc: ansic: 61,588; sh: 5,515; makefile: 1,330; python: 128; xml: 101; sed: 16
file content (72 lines) | stat: -rw-r--r-- 2,181 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 * Copyright (C) 2010 Nick Schermer <nick@xfce.org>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#ifndef __PANEL_DEBUG_H__
#define __PANEL_DEBUG_H__

#include <glib.h>

G_BEGIN_DECLS

#define PANEL_DEBUG_BOOL(bool) ((bool) ? "true" : "false")

typedef enum
{
  PANEL_DEBUG_YES = 1 << 0, /* always enabled if PANEL_DEBUG is not %NULL */

  /* external plugin proxy modes */
  PANEL_DEBUG_GDB = 1 << 1, /* run external plugins in gdb */
  PANEL_DEBUG_VALGRIND = 1 << 2, /* run external plugins in valgrind */

  /* filter domains */
  PANEL_DEBUG_APPLICATION = 1 << 3,
  PANEL_DEBUG_APPLICATIONSMENU = 1 << 4,
  PANEL_DEBUG_BASE_WINDOW = 1 << 5,
  PANEL_DEBUG_DISPLAY_LAYOUT = 1 << 6,
  PANEL_DEBUG_EXTERNAL = 1 << 7,
  PANEL_DEBUG_MAIN = 1 << 8,
  PANEL_DEBUG_MODULE = 1 << 9,
  PANEL_DEBUG_MODULE_FACTORY = 1 << 10,
  PANEL_DEBUG_POSITIONING = 1 << 11,
  PANEL_DEBUG_STRUTS = 1 << 12,
  PANEL_DEBUG_SYSTRAY = 1 << 13,
  PANEL_DEBUG_TASKLIST = 1 << 14,
  PANEL_DEBUG_PAGER = 1 << 15,
  PANEL_DEBUG_ITEMBAR = 1 << 16,
  PANEL_DEBUG_CLOCK = 1 << 17,
  PANEL_DEBUG_ACTIONS = 1 << 18,
} PanelDebugFlag;

gboolean
panel_debug_has_domain (PanelDebugFlag domain);

void
panel_debug (PanelDebugFlag domain,
             const gchar *message,
             ...) G_GNUC_PRINTF (2, 3);

void
panel_debug_filtered (PanelDebugFlag domain,
                      const gchar *message,
                      ...) G_GNUC_PRINTF (2, 3);

G_END_DECLS

G_END_DECLS

#endif /* !__PANEL_DEBUG_H__ */