• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

修訂d97d7bfb5c46aeeb7c64c17ffccb5f8fd0d34202 (tree)
時間2009-08-19 22:18:53
作者Hans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

Use g_stat() rather than stat()

Change Summary

差異

--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -35,6 +35,7 @@
3535 #ifdef HAVE_UNISTD_H
3636 #include <unistd.h>
3737 #endif
38+#include <glib/gstdio.h>
3839
3940 #include "intl.h"
4041 #include "shape_info.h"
@@ -1811,7 +1812,7 @@ custom_object_new(ShapeInfo *info, DiaObjectType **otype)
18111812
18121813 if (info->icon) {
18131814 struct stat buf;
1814- if (0==stat(info->icon,&buf)) {
1815+ if (0==g_stat(info->icon,&buf)) {
18151816 obj->pixmap = NULL;
18161817 obj->pixmap_file = info->icon;
18171818 } else {
--- a/objects/custom_lines/custom_linetypes.c
+++ b/objects/custom_lines/custom_linetypes.c
@@ -31,6 +31,7 @@
3131 #include <stdlib.h>
3232 #include <string.h>
3333 #include <sys/stat.h>
34+#include <glib/gstdio.h>
3435
3536 #include "object.h"
3637
@@ -256,7 +257,7 @@ custom_linetype_new(LineInfo *info, DiaObjectType **otype)
256257
257258 if (info->icon_filename) {
258259 struct stat buf;
259- if (0==stat(info->icon_filename,&buf)) {
260+ if (0==g_stat(info->icon_filename,&buf)) {
260261 obj->pixmap = NULL;
261262 obj->pixmap_file = info->icon_filename;
262263 } else {