[Goodies-commits] r6818 - in gigolo/trunk: . src

Enrico Troeger enrico at xfce.org
Sun Mar 1 16:54:50 CET 2009


Author: enrico
Date: 2009-03-01 15:54:50 +0000 (Sun, 01 Mar 2009)
New Revision: 6818

Modified:
   gigolo/trunk/ChangeLog
   gigolo/trunk/src/backendgvfs.c
   gigolo/trunk/src/backendgvfs.h
   gigolo/trunk/src/bookmarkeditdialog.c
   gigolo/trunk/src/main.c
Log:
Add gigolo_backend_gvfs_get_supported_uri_schemes() and use it to avoid calling GIO/GVfs functions outside of the backend class.

Modified: gigolo/trunk/ChangeLog
===================================================================
--- gigolo/trunk/ChangeLog	2009-03-01 15:34:48 UTC (rev 6817)
+++ gigolo/trunk/ChangeLog	2009-03-01 15:54:50 UTC (rev 6818)
@@ -13,6 +13,10 @@
  * src/bookmark.c:
    Fix creation of smb:// URIs from bookmarks when a domain is set but
    no username.
+ * src/backendgvfs.c, src/backendgvfs.h, src/main.c,
+   src/bookmarkeditdialog.c:
+   Add gigolo_backend_gvfs_get_supported_uri_schemes() and use it to
+   avoid calling GIO/GVfs functions outside of the backend class.
 
 
 2009-02-28  Enrico Tröger  <enrico(at)xfce(dot)org>

Modified: gigolo/trunk/src/backendgvfs.c
===================================================================
--- gigolo/trunk/src/backendgvfs.c	2009-03-01 15:34:48 UTC (rev 6817)
+++ gigolo/trunk/src/backendgvfs.c	2009-03-01 15:54:50 UTC (rev 6818)
@@ -556,3 +556,7 @@
 }
 
 
+const gchar *const *gigolo_backend_gvfs_get_supported_uri_schemes(void)
+{
+	return g_vfs_get_supported_uri_schemes(g_vfs_get_default());
+}

Modified: gigolo/trunk/src/backendgvfs.h
===================================================================
--- gigolo/trunk/src/backendgvfs.h	2009-03-01 15:34:48 UTC (rev 6817)
+++ gigolo/trunk/src/backendgvfs.h	2009-03-01 15:54:50 UTC (rev 6818)
@@ -67,6 +67,8 @@
 																	 const gchar *user,
 																	 const gchar *domain);
 
+const gchar *const* gigolo_backend_gvfs_get_supported_uri_schemes	(void);
+
 G_END_DECLS
 
 #endif /* __BACKENDGVFS_H__ */

Modified: gigolo/trunk/src/bookmarkeditdialog.c
===================================================================
--- gigolo/trunk/src/bookmarkeditdialog.c	2009-03-01 15:34:48 UTC (rev 6817)
+++ gigolo/trunk/src/bookmarkeditdialog.c	2009-03-01 15:54:50 UTC (rev 6818)
@@ -570,7 +570,7 @@
 	/* 0 - method index, 1 - visible/supported flag, 2 - description */
 	store = gtk_list_store_new(3, G_TYPE_INT, G_TYPE_BOOLEAN, G_TYPE_STRING);
 
-	supported = g_vfs_get_supported_uri_schemes(g_vfs_get_default());
+	supported = gigolo_backend_gvfs_get_supported_uri_schemes();
 
 	for (i = 0; i < methods_len; i++)
 	{

Modified: gigolo/trunk/src/main.c
===================================================================
--- gigolo/trunk/src/main.c	2009-03-01 15:34:48 UTC (rev 6817)
+++ gigolo/trunk/src/main.c	2009-03-01 15:54:50 UTC (rev 6818)
@@ -31,6 +31,7 @@
 #include "main.h"
 #include "settings.h"
 #include "window.h"
+#include "backendgvfs.h"
 
 
 static gboolean show_version = FALSE;
@@ -76,7 +77,7 @@
 	const gchar* const *supported;
 	gint j;
 
-	supported = g_vfs_get_supported_uri_schemes(g_vfs_get_default());
+	supported = gigolo_backend_gvfs_get_supported_uri_schemes();
 	for (j = 0; supported[j] != NULL; j++)
 	{
 		g_print("%s\n", supported[j]);




More information about the Goodies-commits mailing list