[Cxplorer-cvs 01118] CVS update: libcxp/src

アーカイブの一覧に戻る

Yasumichi Akahoshi yasum****@users*****
2005年 5月 15日 (日) 01:00:22 JST


Index: libcxp/src/cxp-utils.c
diff -u libcxp/src/cxp-utils.c:1.9 libcxp/src/cxp-utils.c:1.10
--- libcxp/src/cxp-utils.c:1.9	Mon Apr 18 22:51:47 2005
+++ libcxp/src/cxp-utils.c	Sun May 15 01:00:22 2005
@@ -1,4 +1,4 @@
-/* $Id: cxp-utils.c,v 1.9 2005/04/18 13:51:47 yasumichi Exp $ */
+/* $Id: cxp-utils.c,v 1.10 2005/05/14 16:00:22 yasumichi Exp $ */
 /**
  * \if japanese
  * @file
@@ -6,7 +6,7 @@
  *
  * @author 赤星 柔充
  * @date Fri Jan 21 2005
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
  * \endif
  * \if english
  * @file
@@ -14,7 +14,7 @@
  *
  * @author Yasumichi Akahoshi
  * @date Fri Jan 21 2005
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
  * \endif
  */
 
@@ -36,6 +36,7 @@
  */
 
 #include <cxp-utils.h>
+#include <errno.h>
 
 /*
  * This file contains support functions.It is generated by Glade.
@@ -301,3 +302,18 @@
 
 	return str;
 }
+
+void *cxp_error_dialog_run_about_file (gchar *filename)
+{
+	GtkWidget *dialog;
+
+	dialog = gtk_message_dialog_new (NULL,
+			GTK_DIALOG_DESTROY_WITH_PARENT,
+			GTK_MESSAGE_ERROR,
+			GTK_BUTTONS_CLOSE,
+			"%s:%s",
+			filename,
+			g_strerror (errno));
+	gtk_dialog_run (GTK_DIALOG (dialog));
+	gtk_widget_destroy (dialog);
+}


Cxplorer-cvs メーリングリストの案内
アーカイブの一覧に戻る