aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-17 21:36:29 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-17 21:36:29 +0800
commit9b5ae3c3fe97f90d321094d01fbc6e831ecfc313 (patch)
tree6e4e0a14d68d3339f7648d14638af4ea6cb8bce4 /calendar
parent91c1f37cec18c55e543b6092f8e3d0e01a784f82 (diff)
downloadgsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar
gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar.gz
gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar.bz2
gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar.lz
gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar.xz
gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar.zst
gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.zip
Use gstdio wrappers.
2005-12-17 Tor Lillqvist <tml@novell.com> * gui/e-memo-table.c: Use gstdio wrappers. svn path=/trunk/; revision=30812
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/e-memo-table.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 741ba079f1..01ea05e6f3 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -7,7 +7,8 @@
* gui/e-cal-list-view.c
* gui/e-calendar-table.c
* gui/e-calendar-view.c
- * gui/e-itip-control.c: Use gstdio wrappers.
+ * gui/e-itip-control.c
+ * gui/e-memo-table.c: Use gstdio wrappers.
* gui/e-cal-model-tasks.c
* gui/e-meeting-store.c: Use e_util_utf8_strcasecmp() to do
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c
index a720ffbe09..bd14f3cbee 100644
--- a/calendar/gui/e-memo-table.c
+++ b/calendar/gui/e-memo-table.c
@@ -34,6 +34,8 @@
#include <sys/stat.h>
#include <unistd.h>
+#include <glib.h>
+#include <glib/gstdio.h>
#include <gnome.h>
#include <widgets/misc/e-gui-utils.h>
#include <table/e-cell-checkbox.h>
@@ -749,7 +751,7 @@ e_memo_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;
@@ -969,7 +971,7 @@ e_memo_table_load_state (EMemoTable *memo_table,
g_return_if_fail (E_IS_MEMO_TABLE (memo_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 (memo_table->etable)), filename);
}