Replace fprintf() with g_critical().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2884 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-08-13 18:40:34 +00:00
parent 3a8a600790
commit e78b6a9b68
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@
Expect GTK 2.10 libs to link against by default and remove GTK210 Expect GTK 2.10 libs to link against by default and remove GTK210
flag. If anyone wants to build on Windows against GTK 2.6 or 2.8 flag. If anyone wants to build on Windows against GTK 2.6 or 2.8
use 'make GTK280=1'. use 'make GTK280=1'.
* src/support.c:
Replace fprintf() with g_critical().
2008-08-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2008-08-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -118,7 +118,7 @@ create_pixbuf (const gchar *filename)
pixbuf = gdk_pixbuf_new_from_file (pathname, &error); pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
if (!pixbuf) if (!pixbuf)
{ {
fprintf (stderr, "Failed to load pixbuf file: %s: %s\n", g_critical ("Failed to load pixbuf file: %s: %s\n",
pathname, error->message); pathname, error->message);
g_error_free (error); g_error_free (error);
} }