From fd6f3356d27d3e3b6f0506b76e0a381efed7e3ef Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Thu, 23 Aug 2012 08:30:02 +0100 Subject: adapt the cell renderer from Transmission to sort of work. possibly an alternative style, but lots of work to be done here. --- src/util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 45d5181..37a0bf8 100644 --- a/src/util.c +++ b/src/util.c @@ -573,6 +573,17 @@ evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap) #endif } +char* +tr_strlsize( char * buf, guint64 bytes, size_t buflen ) +{ + if( !bytes ) + g_strlcpy( buf, Q_( "None" ), buflen ); + else + tr_formatter_size_B( buf, bytes, buflen ); + + return buf; +} + gboolean is_minimised_arg(const gchar * arg) { return !g_strcmp0(arg, "-m") -- cgit v1.2.3