OBS User unknown 2008-04-22 23:44:03 +00:00 committed by Git OBS Bridge
parent e004cebf4a
commit d1546f15d2
3 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,27 @@
This adds network:/// in the Places sidebar. Backport from 2.23.1.
https://bugzilla.novell.com/show_bug.cgi?id=368446
http://bugzilla.gnome.org/show_bug.cgi?id=350974
Index: src/nautilus-places-sidebar.c
===================================================================
--- src/nautilus-places-sidebar.c (révision 13930)
+++ src/nautilus-places-sidebar.c (copie de travail)
@@ -295,6 +295,16 @@ update_places (NautilusPlacesSidebar *si
gtk_tree_selection_select_iter (selection, &last_iter);
}
+ mount_uri = "network:///"; /* No need to strdup */
+ icon = g_themed_icon_new (NAUTILUS_ICON_NETWORK);
+ last_iter = add_place (sidebar, PLACES_BUILT_IN,
+ _("Network"), icon,
+ mount_uri, NULL, NULL, NULL, 0);
+ g_object_unref (icon);
+ if (strcmp (location, mount_uri) == 0) {
+ gtk_tree_selection_select_iter (selection, &last_iter);
+ }
+
volume_monitor = sidebar->volume_monitor;
/* first go through all connected drives */

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Apr 22 15:53:44 CEST 2008 - vuntz@suse.de
- Add nautilus-bnc368446-network-in-places.patch to add network://
in the places sidebar. Fix bnc#368446 (backported from upstream
2.23.1).
-------------------------------------------------------------------
Thu Apr 10 17:59:04 CEST 2008 - maw@suse.de

View File

@ -16,7 +16,7 @@ BuildRequires: cdparanoia eel-devel fdupes gnome-common gnome-desktop-devel gno
License: GPL v2 or later
Group: Productivity/File utilities
Version: 2.22.2
Release: 1
Release: 6
Summary: The GNOME 2.x Desktop File Manager
Source: ftp://ftp.gnome.org/pub/gnome/sources/nautilus/2.20/%{name}-%{version}.tar.bz2
Url: http://www.gnome.org
@ -52,6 +52,8 @@ Patch18: nautilus-330298-297983-fix-overlapping-desktop-icons.diff
Patch19: nautilus-desktop-icon.patch
# PATCH-FIX-OPENSUSE nautilus-bnc363122-lockdown-context-menus.diff bnc363122 federico@novell.com
Patch20: nautilus-bnc363122-lockdown-context-menus.diff
# PATCH-FEATURE-UPSTREAM nautilus-bnc368446-network-in-places.patch bnc368446 bgo350974 vuntz@novell.com -- Add network:// in the places sidebar
Patch21: nautilus-bnc368446-network-in-places.patch
Requires: gnome-icon-theme
Requires: %{name}-lang = %{version}
Requires: gvfs
@ -102,6 +104,7 @@ gnome-patch-translation-prepare
### %patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21
gnome-patch-translation-update
%build
@ -185,6 +188,10 @@ fi
%{_libdir}/pkgconfig/*.pc
%changelog
* Tue Apr 22 2008 vuntz@suse.de
- Add nautilus-bnc368446-network-in-places.patch to add network://
in the places sidebar. Fix bnc#368446 (backported from upstream
2.23.1).
* Thu Apr 10 2008 maw@suse.de
- Update to version 2.22.2:
+ Add NautilusFileInfo APIs: can_write(), get_mount(),