Silence warnings
[xboard.git] / gtk / xoptions.c
index 3a29431..5ae8ddb 100644 (file)
@@ -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);