X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxengineoutput.c;h=374cbc121bcacd32d6c11fc02762c46179084b62;hb=HEAD;hp=74ae0e674852d2771aaf179edd85bef40846b297;hpb=c37d45adc7d98a702a7459ccdc0ac23df01a476e;p=xboard.git diff --git a/gtk/xengineoutput.c b/gtk/xengineoutput.c index 74ae0e6..374cbc1 100644 --- a/gtk/xengineoutput.c +++ b/gtk/xengineoutput.c @@ -5,7 +5,8 @@ * * Copyright 2005 Alessandro Scotti * - * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015, + * 2016 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * @@ -77,10 +78,7 @@ static GdkPixbuf *iconsGTK[8]; static void ReadIcon (gchar *svgFilename, int iconNr) { - char buf[MSG_SIZ]; - - snprintf(buf, MSG_SIZ, "%s/%s", SVGDIR, svgFilename); - iconsGTK[iconNr] = gdk_pixbuf_new_from_file(buf, NULL); + iconsGTK[iconNr] = LoadIconFile(svgFilename); } void @@ -90,14 +88,14 @@ InitEngineOutput (Option *opt, Option *memo2) Widget w = opt->handle; memoWidget = memo2->handle; #endif - ReadIcon("eo_White.svg", nColorWhite); - ReadIcon("eo_Black.svg", nColorBlack); - ReadIcon("eo_Unknown.svg", nColorUnknown); - - ReadIcon("eo_Clear.svg", nClear); - ReadIcon("eo_Ponder.svg", nPondering); - ReadIcon("eo_Thinking.svg", nThinking); - ReadIcon("eo_Analyzing.svg", nAnalyzing); + ReadIcon("eo_White", nColorWhite); + ReadIcon("eo_Black", nColorBlack); + ReadIcon("eo_Unknown", nColorUnknown); + + ReadIcon("eo_Clear", nClear); + ReadIcon("eo_Ponder", nPondering); + ReadIcon("eo_Thinking", nThinking); + ReadIcon("eo_Analyzing", nAnalyzing); } void