forked from AuroraMiddleware/gtk
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:
parent
6ba75ff95b
commit
ce02e5cacc
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user