show empty properties in obxprop

This commit is contained in:
Dana Jansens 2010-05-11 23:43:29 -04:00
parent dd623f5b2f
commit 87443c956c

View file

@ -98,9 +98,9 @@ static gboolean get_all(Display *d, Window win, Atom prop,
default: default:
g_assert_not_reached(); /* unhandled size */ g_assert_not_reached(); /* unhandled size */
} }
*num = ret_items;
ret = TRUE;
} }
*num = ret_items;
ret = TRUE;
XFree(xdata); XFree(xdata);
} }
return ret; return ret;
@ -254,7 +254,7 @@ void show_properties(Display *d, Window w, int argc, char **argv)
} }
} }
if (found) if (found)
g_print("%s(%s) = %s\n", name, type, val); g_print("%s(%s) = %s\n", name, type, (val ? val : ""));
g_free(val); g_free(val);
} }