From: H.G.Muller Date: Fri, 1 Apr 2016 08:08:15 +0000 (+0200) Subject: Silence warnings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7f784ffb4ac7e9a6a1ec40dc403d69d1bd96739b;p=xboard.git Silence warnings --- diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 3a29431..5ae8ddb 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -279,7 +279,7 @@ ApplyFont (Option *opt, char *font) case ListBox: case Label: w = opt->handle; break; case Button: if(opt->handle) w = gtk_bin_get_child(GTK_BIN(opt->handle)); break; - case TextBox: w = opt->textValue; if(!w) w = opt->handle; break; + case TextBox: w = (GtkWidget *) opt->textValue; if(!w) w = opt->handle; break; default: ; } if(w && font) SetWidgetFont(w, &font);