diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-17 21:34:10 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-17 21:34:10 +0800 |
commit | 47426ed3a62e9a1e0930b427da9651328a5f615f (patch) | |
tree | f85345facaf912bee297ef629be6e4cd29a85eac /calendar | |
parent | ab3120eb9a4f51883231eea0879ad2b5da55d8ae (diff) | |
download | gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.tar gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.tar.gz gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.tar.bz2 gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.tar.lz gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.tar.xz gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.tar.zst gsoc2013-evolution-47426ed3a62e9a1e0930b427da9651328a5f615f.zip |
Use gstdio wrappers.
2005-12-17 Tor Lillqvist <tml@novell.com>
* gui/e-itip-control.c: Use gstdio wrappers.
svn path=/trunk/; revision=30810
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 3 | ||||
-rw-r--r-- | calendar/gui/e-itip-control.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 73088a4ce2..f4b05cb7d6 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -6,7 +6,8 @@ * gui/e-cal-list-view.c * gui/e-calendar-table.c - * gui/e-calendar-view.c: Use gstdio wrappers. + * gui/e-calendar-view.c + * gui/e-itip-control.c: Use gstdio wrappers. * gui/e-cal-model-tasks.c: Use e_util_utf8_strcasecmp() to do proper comparison of translated (UTF-8) strings. diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 99c42a25cb..f840856bd7 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -30,6 +30,7 @@ #include <fcntl.h> #include <unistd.h> #include <glib.h> +#include <glib/gstdio.h> #include <gtk/gtkmisc.h> #include <libgnome/gnome-i18n.h> #include <libgnome/gnome-util.h> @@ -51,12 +52,13 @@ #include <libedataserver/e-time-utils.h> #include <e-util/e-dialog-widgets.h> #include <e-util/e-html-utils.h> +#include <e-util/e-icon-factory.h> +#include <e-util/e-util-private.h> #include "dialogs/delete-error.h" #include "calendar-config.h" #include "itip-utils.h" #include "e-itip-control.h" #include "common/authentication.h" -#include <e-util/e-icon-factory.h> struct _EItipControlPrivate { GtkWidget *html; @@ -2090,7 +2092,7 @@ url_requested_cb (GtkHTML *html, const gchar *url, GtkHTMLStream *handle, gpoint { unsigned char buffer[4096]; int len, fd; - if ((fd = open (url, O_RDONLY)) == -1) { + if ((fd = g_open (url, O_RDONLY|O_BINARY, 0)) == -1) { g_warning ("%s", g_strerror (errno)); return; } |