summaryrefslogtreecommitdiff
path: root/common/gmountsource.c
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-06-17 09:49:44 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-06-17 09:50:35 -0400
commit4053577a19585c63e23e6c6e85011e2df9910745 (patch)
tree8c77e6ab423827a8623e7b55ad77ef362eb669af /common/gmountsource.c
parent8a72222d454bdf12e88402b2f012667e7c8e9754 (diff)
downloadgvfs-4053577a19585c63e23e6c6e85011e2df9910745.tar.gz
Bug 585591 – Starting/stopping drives
This is the GVfs implementation for the new GIO API for starting/stopping drives. See http://bugzilla.gnome.org/show_bug.cgi?id=585591 for details.
Diffstat (limited to 'common/gmountsource.c')
-rw-r--r--common/gmountsource.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/gmountsource.c b/common/gmountsource.c
index b2f490d1..ac705fad 100644
--- a/common/gmountsource.c
+++ b/common/gmountsource.c
@@ -613,7 +613,7 @@ g_mount_source_ask_question_async (GMountSource *source,
_g_dbus_message_append_args (message,
DBUS_TYPE_STRING, &message_string,
DBUS_TYPE_ARRAY, DBUS_TYPE_STRING,
- choices, n_choices,
+ &choices, n_choices,
0);
result = g_simple_async_result_new (G_OBJECT (source), callback, user_data,
@@ -687,13 +687,12 @@ static gboolean
op_ask_question (GMountOperation *op,
const char *message,
const char **choices,
- gint n_choices,
GMountSource *mount_source)
{
g_mount_source_ask_question_async (mount_source,
message,
choices,
- n_choices,
+ g_strv_length ((gchar **) choices),
op_ask_question_reply,
g_object_ref (op));
g_signal_stop_emission_by_name (op, "ask_question");
@@ -741,7 +740,6 @@ g_mount_source_get_operation (GMountSource *mount_source)
g_object_ref (mount_source),
g_object_unref);
-
g_signal_connect (op, "ask_password", (GCallback)op_ask_password, mount_source);
g_signal_connect (op, "ask_question", (GCallback)op_ask_question, mount_source);
g_signal_connect (op, "aborted", (GCallback)op_aborted, mount_source);