diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-17 21:36:29 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-17 21:36:29 +0800 |
commit | 9b5ae3c3fe97f90d321094d01fbc6e831ecfc313 (patch) | |
tree | 6e4e0a14d68d3339f7648d14638af4ea6cb8bce4 /calendar/gui/e-memo-table.c | |
parent | 91c1f37cec18c55e543b6092f8e3d0e01a784f82 (diff) | |
download | gsoc2013-evolution-9b5ae3c3fe97f90d321094d01fbc6e831ecfc313.tar.gz 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/gui/e-memo-table.c')
-rw-r--r-- | calendar/gui/e-memo-table.c | 6 |
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); } |