[Xfce4-commits] <gigolo:master> After creating/editing a bookmark, update the list of mounts
Enrico Tröger
noreply at xfce.org
Sun Apr 22 19:36:08 CEST 2012
Updating branch refs/heads/master
to 175425f853a3e2066f283fa9d82357280fa53930 (commit)
from 6e35cd6300593669ba9194329592566992d17d8d (commit)
commit 175425f853a3e2066f283fa9d82357280fa53930
Author: Enrico Tröger <enrico at xfce.org>
Date: Sun Apr 22 19:30:38 2012 +0200
After creating/editing a bookmark, update the list of mounts
Since we display bookmark names for matching mounts, we should update
the list in case the bookmark name changed.
src/backendgvfs.c | 9 +++++++++
src/backendgvfs.h | 2 ++
src/window.c | 2 ++
3 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/backendgvfs.c b/src/backendgvfs.c
index 98d75fa..f52dce9 100644
--- a/src/backendgvfs.c
+++ b/src/backendgvfs.c
@@ -545,6 +545,15 @@ void gigolo_backend_gvfs_unmount_mount(GigoloBackendGVFS *backend, gpointer moun
}
+void gigolo_backend_gvfs_update_mounts_and_volumes(GigoloBackendGVFS *backend)
+{
+ GVolumeMonitor *gvm;
+
+ gvm = g_volume_monitor_get();
+ mount_volume_changed_cb(gvm, NULL, backend);
+}
+
+
static void mount_ready_cb(GFile *location, GAsyncResult *res, MountInfo *mi)
{
gchar *uri;
diff --git a/src/backendgvfs.h b/src/backendgvfs.h
index ada2431..33466ac 100644
--- a/src/backendgvfs.h
+++ b/src/backendgvfs.h
@@ -94,6 +94,8 @@ void gigolo_backend_gvfs_get_name_and_uri_from_mount (gpointer mount, gchar *
gboolean gigolo_backend_gvfs_mount_volume (GigoloBackendGVFS *backend, GtkWindow *window, gpointer vol);
void gigolo_backend_gvfs_unmount_mount (GigoloBackendGVFS *backend, gpointer mount, GtkWindow *parent);
+void gigolo_backend_gvfs_update_mounts_and_volumes (GigoloBackendGVFS *backend);
+
void gigolo_backend_gvfs_mount_uri (GigoloBackendGVFS *backend,
const gchar *uri,
GtkWindow *parent,
diff --git a/src/window.c b/src/window.c
index b678c75..43e2004 100644
--- a/src/window.c
+++ b/src/window.c
@@ -920,6 +920,8 @@ void gigolo_window_update_bookmarks(GigoloWindow *window)
/* update the popup menu items */
tree_selection_changed_cb(NULL, window);
+
+ gigolo_backend_gvfs_update_mounts_and_volumes(priv->backend_gvfs);
}
More information about the Xfce4-commits
mailing list