From e6df7a018a00f4f5ed8c20882af27c9033d6aa5b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 30 Oct 2012 15:04:32 +0100 Subject: [PATCH] Fix clock highlighting --- gtk/xboard.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/gtk/xboard.c b/gtk/xboard.c index ba49200..38ecb2d 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1817,6 +1817,7 @@ void DisplayTimerLabel (Option *opt, char *color, long timer, int highlight) { GtkWidget *w = (GtkWidget *) opt->handle; + GdkColor col; char *markup; char bgcolor[10]; char fgcolor[10]; @@ -1834,6 +1835,9 @@ DisplayTimerLabel (Option *opt, char *color, long timer, int highlight) strcpy(fgcolor, appData.lowTimeWarningColor); } + gdk_color_parse( bgcolor, &col ); + gtk_widget_modify_bg(gtk_widget_get_parent(opt->handle), GTK_STATE_NORMAL, &col); + if (appData.clockMode) { markup = g_markup_printf_escaped("%s:%s%s", bgcolor, fgcolor, color, appData.logoSize && !partnerUp ? "\n" : " ", TimeString(timer)); -- 1.7.0.4