Yasumichi Akahoshi
yasum****@users*****
2005年 9月 4日 (日) 00:02:51 JST
Index: libcxp/src/cxp-handler.c diff -u libcxp/src/cxp-handler.c:1.15 libcxp/src/cxp-handler.c:1.16 --- libcxp/src/cxp-handler.c:1.15 Thu Aug 11 01:05:22 2005 +++ libcxp/src/cxp-handler.c Sun Sep 4 00:02:51 2005 @@ -1,4 +1,4 @@ -/* $Id: cxp-handler.c,v 1.15 2005/08/10 16:05:22 yasumichi Exp $ */ +/* $Id: cxp-handler.c,v 1.16 2005/09/03 15:02:51 yasumichi Exp $ */ /** * \if japanese * @file @@ -6,7 +6,7 @@ * * @author 赤星 柔充 * @date Tue Mar 29 2005 - * $Revision: 1.15 $ + * $Revision: 1.16 $ * \endif * \if english * @file @@ -14,7 +14,7 @@ * * @author Yasumichi Akahoshi * @date Tue Mar 29 2005 - * $Revision: 1.15 $ + * $Revision: 1.16 $ * \endif */ @@ -253,6 +253,7 @@ CxpHandlerPrivate *priv = CXP_HANDLER_GET_PRIVATE(handler); gchar *gconf_dir; gchar *mime_type; + gchar *file_type; gchar *cmd = NULL; gchar *fullcmd; gchar *message; @@ -266,9 +267,10 @@ cmd = gconf_client_get_string (priv->client, gconf_dir, NULL); if (cmd == NULL) { + file_type = cxp_get_mime_comment (mime_type); message = g_strdup_printf (_("Please input the command that opens the file whose type is %s"), - mime_type); + file_type); dialog = cxp_entry_dialog_new (_("Undefined extension"), message, ""); if (gtk_dialog_run (GTK_DIALOG (dialog)) == @@ -282,6 +284,7 @@ } } gtk_widget_destroy (dialog); + g_free (file_type); g_free (message); } g_free (mime_type);