summaryrefslogtreecommitdiff
path: root/programs/gvfs-mount.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-01-09 14:49:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-01-09 14:49:05 +0000
commit23730c607ca8ae5a6f8d84d623e7b21bdd5bd1c3 (patch)
tree1f4c6e149a351d32ba92a9ba71c6856ce771d81e /programs/gvfs-mount.c
parentca250f832f62324f0bef8fab968d681d03a84a57 (diff)
downloadgvfs-23730c607ca8ae5a6f8d84d623e7b21bdd5bd1c3.tar.gz
Add g_mount_source_get_operation() that lets you handle a remote
2008-01-09 Alexander Larsson <alexl@redhat.com> * common/gmountsource.[ch]: Add g_mount_source_get_operation() that lets you handle a remote GMountSource as if it was a GMountOperation. * common/gmountoperationdbus.c: * programs/gvfs-mount.c: Update to new GMountOperation APIs * client/gdaemonfile.c: * daemon/gvfsjobmountmountable.[ch]: Also let you return target by uri, as not all targets are from gvfs. * daemon/gvfsbackendcomputer.c: Initial cut at mount_mountable svn path=/trunk/; revision=1085
Diffstat (limited to 'programs/gvfs-mount.c')
-rw-r--r--programs/gvfs-mount.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/programs/gvfs-mount.c b/programs/gvfs-mount.c
index 43a0459f..aa1d56bc 100644
--- a/programs/gvfs-mount.c
+++ b/programs/gvfs-mount.c
@@ -65,7 +65,7 @@ prompt_for (const char *prompt, const char *default_value)
return g_strdup (data);
}
-static gboolean
+static void
ask_password_cb (GMountOperation *op,
const char *message,
const char *default_user,
@@ -96,9 +96,7 @@ ask_password_cb (GMountOperation *op,
g_free (s);
}
- g_mount_operation_reply (op, FALSE);
-
- return TRUE;
+ g_mount_operation_reply (op, G_MOUNT_OPERATION_HANDLED);
}
static void