<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 13, 2013 at 1:15 PM, Philipp Brüschweiler <span dir="ltr"><<a href="mailto:blei42@gmail.com" target="_blank">blei42@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
clients/desktop-shell.c | 4 +++-<br>
1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c<br>
index 41e7daa..ce2366d 100644<br>
--- a/clients/desktop-shell.c<br>
+++ b/clients/desktop-shell.c<br>
@@ -524,8 +524,10 @@ load_icon_or_fallback(const char *icon)<br>
if (cairo_surface_status(surface) == CAIRO_STATUS_SUCCESS)<br>
return surface;<br>
<br>
+ fprintf(stderr, "ERROR loading icon from file '%s', error: '%s'\n",<br>
+ icon,<br>
+ cairo_status_to_string(cairo_surface_status(surface)));<br></blockquote><div><br></div><div>Instead of calling cairo_surface_status twice, you could save the return value from above, use it for success check and then print the error.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
cairo_surface_destroy(surface);<br>
- fprintf(stderr, "ERROR loading icon from file '%s'\n", icon);<br>
<br>
/* draw fallback icon */<br>
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,<br>
<span><font color="#888888">--<br></font></span></blockquote><div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><font color="#888888">
1.8.2.1<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div></div><br><div class="gmail_extra"><br>-- <br>Sid<br>
</div></div>