summaryrefslogtreecommitdiff
path: root/openbox/menu.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-24 06:02:38 +0000
committerDana Jansens <danakj@orodu.net>2003-07-24 06:02:38 +0000
commit5be0a82a353b67160142134de1cc51fa31d72759 (patch)
tree333f0e70a6cf4f2cb5252c2e16922a1b6408dc06 /openbox/menu.c
parent230abdc5a0848cd05dc3a007826a2a6b8a73c0a5 (diff)
use ob_debug for any debug printing and only display the output when its a debug build or when --debug is passed to it
Diffstat (limited to 'openbox/menu.c')
-rw-r--r--openbox/menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index 4c7adc92..fabfc85a 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -1,3 +1,4 @@
+#include "debug.h"
#include "menu.h"
#include "openbox.h"
#include "stacking.h"
@@ -37,7 +38,7 @@ void parse_menu_full(xmlDocPtr doc, xmlNodePtr node, void *data,
goto parse_menu_fail;
if (!parse_attr_string("label", node, &title))
goto parse_menu_fail;
- g_message("menu label %s", title);
+ ob_debug("menu label %s\n", title);
if (parse_attr_string("plugin", node, &plugin)) {
PluginMenuCreateData data;
@@ -431,7 +432,8 @@ ObMenuEntry *menu_find_entry_by_pos(ObMenu *menu, int x, int y)
y -= menu->title_h + ob_rr_theme->bwidth;
if (y < 0) return NULL;
- g_message ("%d %p", y/menu->item_h, g_list_nth_data(menu->entries, y / menu->item_h));
+ ob_debug("%d %p\n", y/menu->item_h,
+ g_list_nth_data(menu->entries, y / menu->item_h));
return g_list_nth_data(menu->entries, y / menu->item_h);
}