Re: gdk-pixbuf: *no* save xpm patch
- From: Havoc Pennington <hp redhat com>
- To: Hans Breuer <hans breuer org>
- Cc: Tor Lillqvist <tml iki fi>, gtk-devel-list gnome org
- Subject: Re: gdk-pixbuf: *no* save xpm patch
- Date: 01 Nov 2000 10:33:13 -0500
Hans Breuer <hans breuer org> writes:
> What about g_get_tmp_filename("gdkpixbuf-xpm-tmp") to get the best of both
> worlds?
>
If you have get_tmp_filename() there's a race condition before you
open the file, right?
The idea of passing in an identifying part of the name is a good one
though. How about:
gint g_file_open_tmp (const gchar *identifier,
GError **error);
So usage is e.g.:
int fd = g_file_open_tmp ("gdk-pixbuf-io-xpm", &error);
and the error can be set to the usual GFileError stuff.
Only problem I see is that there's no way to get the filename, so
maybe the filename should be returned as an optional out param?
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]