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

Zurück zum Archiv-Index

Yasumichi Akahoshi yasum****@users*****
2005年 9月 7日 (水) 18:55:04 JST


Index: libcxp/src/cxp-handler.c
diff -u libcxp/src/cxp-handler.c:1.17 libcxp/src/cxp-handler.c:1.18
--- libcxp/src/cxp-handler.c:1.17	Sun Sep  4 00:11:31 2005
+++ libcxp/src/cxp-handler.c	Wed Sep  7 18:55:04 2005
@@ -1,4 +1,4 @@
-/* $Id: cxp-handler.c,v 1.17 2005/09/03 15:11:31 yasumichi Exp $ */
+/* $Id: cxp-handler.c,v 1.18 2005/09/07 09:55:04 yasumichi Exp $ */
 /**
  * \if japanese
  * @file
@@ -6,7 +6,7 @@
  *
  * @author 赤星 柔充
  * @date Tue Mar 29 2005
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
  * \endif
  * \if english
  * @file
@@ -14,7 +14,7 @@
  *
  * @author Yasumichi Akahoshi
  * @date Tue Mar 29 2005
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
  * \endif
  */
 
@@ -251,7 +251,7 @@
 void cxp_handler_launch (CxpHandler * handler, const gchar * fullpath)
 {
 	CxpHandlerPrivate *priv = CXP_HANDLER_GET_PRIVATE(handler);
-	gchar *gconf_dir;
+	gchar *key;
 	gchar *mime_type;
 	gchar *file_type;
 	gchar *cmd = NULL;
@@ -263,8 +263,9 @@
 	g_return_if_fail (fullpath != NULL);
 
 	mime_type = cxp_get_mime_type_for_file (fullpath);
-	gconf_dir = g_strdup_printf ("/apps/cxp/mime-types/%s/open", mime_type);
-	cmd = gconf_client_get_string (priv->client, gconf_dir, NULL);
+	key = g_strdup_printf ("/apps/cxp/mime-types/%s/open", mime_type);
+	g_strdelimit (key, "+", '@');
+	cmd = gconf_client_get_string (priv->client, key, NULL);
 	if (cmd == NULL)
 	{
 		file_type = cxp_get_mime_comment (mime_type);
@@ -280,7 +281,7 @@
 				(CXP_ENTRY_DIALOG (dialog));
 			if ((cmd != NULL) && (strlen (cmd) > 0))
 			{
-				gconf_client_set_string (priv->client, gconf_dir, cmd, NULL);
+				gconf_client_set_string (priv->client, key, cmd, NULL);
 			}
 		}
 		gtk_widget_destroy (dialog);


Cxplorer-cvs メーリングリストの案内
Zurück zum Archiv-Index