aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-memo-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-memo-table.c')
-rw-r--r--calendar/gui/e-memo-table.c6
1 files changed, 4 insertions, 2 deletions
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);
}