Use g_fopen().

2004-12-05  Tor Lillqvist  <tml@iki.fi>

	* demos/gtk-demo/main.c (load_file): Use g_fopen().

	* demos/gtk-demo/images.c (progressive_timeout): Use
	g_fopen(). Open png file in binary mode.
This commit is contained in:
Tor Lillqvist 2004-12-05 12:47:42 +00:00 committed by Tor Lillqvist
parent 6ba75ff95b
commit ce02e5cacc
6 changed files with 32 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
* demos/gtk-demo/images.c (progressive_timeout): Use
g_fopen(). Open png file in binary mode.
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -1,3 +1,10 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
* demos/gtk-demo/images.c (progressive_timeout): Use
g_fopen(). Open png file in binary mode.
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -1,3 +1,10 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
* demos/gtk-demo/images.c (progressive_timeout): Use
g_fopen(). Open png file in binary mode.
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -1,3 +1,10 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
* demos/gtk-demo/images.c (progressive_timeout): Use
g_fopen(). Open png file in binary mode.
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -13,6 +13,7 @@
*/
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#include <stdio.h>
#include <errno.h>
#include "demo-common.h"
@ -195,7 +196,7 @@ progressive_timeout (gpointer data)
}
else
{
image_stream = fopen (filename, "r");
image_stream = g_fopen (filename, "rb");
g_free (filename);
if (!image_stream)

View File

@ -5,6 +5,7 @@
#include <string.h>
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#include <demos.h>
@ -465,7 +466,7 @@ load_file (const gchar *filename)
return;
}
file = fopen (full_filename, "r");
file = g_fopen (full_filename, "r");
if (!file)
g_warning ("Cannot open %s: %s\n", full_filename, g_strerror (errno));