You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

60 lines
2.2 KiB

  1. /*
  2. * Copyright (C) 2010 Nick Schermer <nick@xfce.org>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef __PANEL_DEBUG_H__
  19. #define __PANEL_DEBUG_H__
  20. #define PANEL_DEBUG_BOOL(bool) ((bool) ? "true" : "false")
  21. typedef enum
  22. {
  23. PANEL_DEBUG_YES = 1 << 0, /* always enabled if PANEL_DEBUG is not %NULL */
  24. /* external plugin proxy modes */
  25. PANEL_DEBUG_GDB = 1 << 1, /* run external plugins in gdb */
  26. PANEL_DEBUG_VALGRIND = 1 << 2, /* run external plugins in valgrind */
  27. /* filter domains */
  28. PANEL_DEBUG_APPLICATION = 1 << 3,
  29. PANEL_DEBUG_APPLICATIONSMENU = 1 << 4,
  30. PANEL_DEBUG_BASE_WINDOW = 1 << 5,
  31. PANEL_DEBUG_DISPLAY_LAYOUT = 1 << 6,
  32. PANEL_DEBUG_EXTERNAL = 1 << 7,
  33. PANEL_DEBUG_EXTERNAL46 = 1 << 8,
  34. PANEL_DEBUG_MAIN = 1 << 9,
  35. PANEL_DEBUG_MODULE = 1 << 10,
  36. PANEL_DEBUG_MODULE_FACTORY = 1 << 11,
  37. PANEL_DEBUG_POSITIONING = 1 << 12,
  38. PANEL_DEBUG_STRUTS = 1 << 13,
  39. PANEL_DEBUG_SYSTRAY = 1 << 14,
  40. PANEL_DEBUG_TASKLIST = 1 << 15
  41. }
  42. PanelDebugFlag;
  43. gboolean panel_debug_has_domain (PanelDebugFlag domain);
  44. void panel_debug (PanelDebugFlag domain,
  45. const gchar *message,
  46. ...) G_GNUC_PRINTF (2, 3);
  47. void panel_debug_filtered (PanelDebugFlag domain,
  48. const gchar *message,
  49. ...) G_GNUC_PRINTF (2, 3);
  50. #endif /* !__PANEL_DEBUG_H__ */