Re: "Network Servers" icon for the desktop



On Thu, 2005-12-15 at 15:34 +0100, Alexander Larsson wrote:

> > First: IMHO the Gconf key name should be "network_icon_visible", as
> > other Nautilus keys.
> 
> I did this.

Thanks!

> > Third and more important: Nautilus crash setting to false the
> > network_visible key :-( But it works setting to true :-|
> 
> Federico, could you take a look at this?

I saw you fixed this; sorry for missing that g_strdup() :)

The final thing is to add a Network Servers item to the Places sidebar.
The attached patch fixes this.  The file chooser already has this in
libgnomeui HEAD, so I believe with this patch we should now have this in
all the places where we could possibly have it ;)

  Federico
2006-02-09  Federico Mena Quintero  <federico novell com>

	* src/nautilus-places-sidebar.c (update_places): Add an item
	for "Network Servers".

--- src/nautilus-places-sidebar.c.orig	2006-02-09 14:24:46.000000000 -0600
+++ src/nautilus-places-sidebar.c	2006-02-09 14:28:01.000000000 -0600
@@ -190,6 +190,12 @@ update_places (NautilusPlacesSidebar *si
 		gtk_tree_selection_select_iter (selection, &last_iter);
 	}	
 
+	mount_uri = "network:///"; /* No need to strdup */
+	last_iter = add_place (sidebar->store, PLACES_BUILT_IN,
+			       _("Network Servers"), "gnome-fs-network", mount_uri);
+	if (strcmp (location, mount_uri) == 0) {
+		gtk_tree_selection_select_iter (selection, &last_iter);
+	}
 
 	/* add mounted volumes */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]