projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
722a712
)
use g_debug for debug messages
author
Dana Jansens
<danakj@orodu.net>
Sun, 2 Mar 2008 20:17:31 +0000
(15:17 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 2 Mar 2008 20:19:09 +0000
(15:19 -0500)
obt/display.c
patch
|
blob
|
history
render/image.c
patch
|
blob
|
history
diff --git
a/obt/display.c
b/obt/display.c
index
72c1b4d
..
f34fc57
100644
(file)
--- a/
obt/display.c
+++ b/
obt/display.c
@@
-131,11
+131,11
@@
static gint xerror_handler(Display *d, XErrorEvent *e)
XGetErrorText(d, e->error_code, errtxt, 127);
if (!xerror_ignore) {
if (e->error_code == BadWindow)
XGetErrorText(d, e->error_code, errtxt, 127);
if (!xerror_ignore) {
if (e->error_code == BadWindow)
- /*g_
message
(_("X Error: %s\n"), errtxt)*/;
+ /*g_
debug
(_("X Error: %s\n"), errtxt)*/;
else
g_error("X Error: %s", errtxt);
} else
else
g_error("X Error: %s", errtxt);
} else
- g_
message
("Ignoring XError code %d '%s'", e->error_code, errtxt);
+ g_
debug
("Ignoring XError code %d '%s'", e->error_code, errtxt);
#else
(void)d; (void)e;
#endif
#else
(void)d; (void)e;
#endif
diff --git
a/render/image.c
b/render/image.c
index
6fbd8a8
..
f6d70ee
100644
(file)
--- a/
render/image.c
+++ b/
render/image.c
@@
-74,10
+74,10
@@
static void AddPicture(RrImage *self, RrImagePic ***list, gint *len,
g_hash_table_insert(self->cache->table, (*list)[0], self);
#ifdef DEBUG
g_hash_table_insert(self->cache->table, (*list)[0], self);
#ifdef DEBUG
- g_
message
("Adding %s picture to the cache:\n "
-
"Image 0x%x, w %d h %d Hash %u",
-
(*list == self->original ? "ORIGINAL" : "RESIZED"),
-
(guint)self, pic->width, pic->height, RrImagePicHash(pic));
+ g_
debug
("Adding %s picture to the cache:\n "
+ "Image 0x%x, w %d h %d Hash %u",
+ (*list == self->original ? "ORIGINAL" : "RESIZED"),
+ (guint)self, pic->width, pic->height, RrImagePicHash(pic));
#endif
}
#endif
}
@@
-89,11
+89,11
@@
static void RemovePicture(RrImage *self, RrImagePic ***list,
gint j;
#ifdef DEBUG
gint j;
#ifdef DEBUG
- g_
message
("Removing %s picture from the cache:\n "
-
"Image 0x%x, w %d h %d Hash %u",
-
(*list == self->original ? "ORIGINAL" : "RESIZED"),
-
(guint)self, (*list)[i]->width, (*list)[i]->height,
-
RrImagePicHash((*list)[i]));
+ g_
debug
("Removing %s picture from the cache:\n "
+ "Image 0x%x, w %d h %d Hash %u",
+ (*list == self->original ? "ORIGINAL" : "RESIZED"),
+ (guint)self, (*list)[i]->width, (*list)[i]->height,
+ RrImagePicHash((*list)[i]));
#endif
/* remove the picture as a key in the cache */
#endif
/* remove the picture as a key in the cache */
@@
-323,8
+323,8
@@
void RrImageUnref(RrImage *self)
{
if (self && --self->ref == 0) {
#ifdef DEBUG
{
if (self && --self->ref == 0) {
#ifdef DEBUG
- g_
message
("Refcount to 0, removing ALL pictures from the cache:\n "
-
"Image 0x%x", (guint)self);
+ g_
debug
("Refcount to 0, removing ALL pictures from the cache:\n "
+ "Image 0x%x", (guint)self);
#endif
while (self->n_original > 0)
RemovePicture(self, &self->original, 0, &self->n_original);
#endif
while (self->n_original > 0)
RemovePicture(self, &self->original, 0, &self->n_original);
@@
-346,8
+346,8
@@
void RrImageAddPicture(RrImage *self, RrPixel32 *data, gint w, gint h)
for (i = 0; i < self->n_original; ++i)
if (self->original[i]->width == w && self->original[i]->height == h) {
#ifdef DEBUG
for (i = 0; i < self->n_original; ++i)
if (self->original[i]->width == w && self->original[i]->height == h) {
#ifdef DEBUG
- g_
message
("Found duplicate ORIGINAL image:\n "
-
"Image 0x%x, w %d h %d", (guint)self, w, h);
+ g_
debug
("Found duplicate ORIGINAL image:\n "
+ "Image 0x%x, w %d h %d", (guint)self, w, h);
#endif
return;
}
#endif
return;
}