Commit ce02e5ca authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

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.
parent 6ba75ff9
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
......
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
......
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
......
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
......
......@@ -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)
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment