aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-table.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-17 21:30:41 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-17 21:30:41 +0800
commitf5c9697bef825397c097fb6edd3a76c08d5c7da5 (patch)
treebda061fc214cd2bc29dcd0fb871c765ef40c7063 /calendar/gui/e-calendar-table.c
parent682da241dd4c78ac40fcc3ce65da9b8f94901f15 (diff)
downloadgsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.tar
gsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.tar.gz
gsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.tar.bz2
gsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.tar.lz
gsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.tar.xz
gsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.tar.zst
gsoc2013-evolution-f5c9697bef825397c097fb6edd3a76c08d5c7da5.zip
Use gstdio wrappers.
2005-12-17 Tor Lillqvist <tml@novell.com> * gui/e-calendar-table.c: Use gstdio wrappers. svn path=/trunk/; revision=30808
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r--calendar/gui/e-calendar-table.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index e970c035cd..8caa27d6d6 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -33,6 +33,8 @@
#include <sys/stat.h>
#include <unistd.h>
+#include <glib.h>
+#include <glib/gstdio.h>
#include <gnome.h>
#include <misc/e-gui-utils.h>
#include <table/e-cell-checkbox.h>
@@ -1039,7 +1041,7 @@ e_calendar_table_on_save_as (EPopup *ep, EPopupItem *pitem, void *data)
return;
}
- file = fopen (filename, "w");
+ file = g_fopen (filename, "w");
if (file == NULL) {
g_warning ("Couldn't save item");
return;
@@ -1376,7 +1378,7 @@ e_calendar_table_load_state (ECalendarTable *cal_table,
g_return_if_fail (E_IS_CALENDAR_TABLE (cal_table));
- if (stat (filename, &st) == 0 && st.st_size > 0
+ if (g_stat (filename, &st) == 0 && st.st_size > 0
&& S_ISREG (st.st_mode)) {
e_table_load_state (e_table_scrolled_get_table (E_TABLE_SCROLLED (cal_table->etable)), filename);
}