From ef3d0a19fea329b4fab5fef22d8476bebcd9ce11 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Wed, 15 Nov 2006 20:24:43 +0000 Subject: [PATCH] linkstatus now follows use_spacer. closes bug #1577580 git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@778 7f574dfc-610e-0410-a909-a81674777703 --- ChangeLog | 3 +++ src/conky.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b1d26d45..955a86c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # $Id$ +2006-11-15 + * Change linkstatus display for use_spacer. Closes bug #1577580. + 2006-11-14 * Fix compile error with --disable-x11. * Add new timed thread abstraction routines. diff --git a/src/conky.c b/src/conky.c index 9cde1d9c..617a46cc 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3446,8 +3446,14 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object * } OBJ(linkstatus) { - snprintf(p, p_max_size, "%d", + if (!use_spacer) { + snprintf(p, p_max_size, "%d", obj->data.net->linkstatus); + } else + { + snprintf(p, 6, "%d ", + obj->data.net->linkstatus); + } } #if defined(IMLIB2) && defined(X11) OBJ(image) {