作図ソフト dia の改良版
修訂 | d97d7bfb5c46aeeb7c64c17ffccb5f8fd0d34202 (tree) |
---|---|
時間 | 2009-08-19 22:18:53 |
作者 | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
Use g_stat() rather than stat()
@@ -35,6 +35,7 @@ | ||
35 | 35 | #ifdef HAVE_UNISTD_H |
36 | 36 | #include <unistd.h> |
37 | 37 | #endif |
38 | +#include <glib/gstdio.h> | |
38 | 39 | |
39 | 40 | #include "intl.h" |
40 | 41 | #include "shape_info.h" |
@@ -1811,7 +1812,7 @@ custom_object_new(ShapeInfo *info, DiaObjectType **otype) | ||
1811 | 1812 | |
1812 | 1813 | if (info->icon) { |
1813 | 1814 | struct stat buf; |
1814 | - if (0==stat(info->icon,&buf)) { | |
1815 | + if (0==g_stat(info->icon,&buf)) { | |
1815 | 1816 | obj->pixmap = NULL; |
1816 | 1817 | obj->pixmap_file = info->icon; |
1817 | 1818 | } else { |
@@ -31,6 +31,7 @@ | ||
31 | 31 | #include <stdlib.h> |
32 | 32 | #include <string.h> |
33 | 33 | #include <sys/stat.h> |
34 | +#include <glib/gstdio.h> | |
34 | 35 | |
35 | 36 | #include "object.h" |
36 | 37 |
@@ -256,7 +257,7 @@ custom_linetype_new(LineInfo *info, DiaObjectType **otype) | ||
256 | 257 | |
257 | 258 | if (info->icon_filename) { |
258 | 259 | struct stat buf; |
259 | - if (0==stat(info->icon_filename,&buf)) { | |
260 | + if (0==g_stat(info->icon_filename,&buf)) { | |
260 | 261 | obj->pixmap = NULL; |
261 | 262 | obj->pixmap_file = info->icon_filename; |
262 | 263 | } else { |