aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/e-calendar-table.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index a307bc965c..8e121cd2c1 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -4,7 +4,8 @@
* gui/e-cal-component-memo-preview.c: Use GLib to construct
filenames from URIs and vice versa.
- * gui/e-cal-list-view.c: Use gstdio wrappers.
+ * gui/e-cal-list-view.c
+ * gui/e-calendar-table.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-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);
}