[gnome-disk-utility/udisks2-port] Catch up with udisks changes in how options are handled
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Catch up with udisks changes in how options are handled
- Date: Fri, 17 Jun 2011 15:56:05 +0000 (UTC)
commit ddc642d7df1b43ba4cb6bd7cd1ae11a151140d51
Author: David Zeuthen <davidz redhat com>
Date: Fri Jun 17 11:55:48 2011 -0400
Catch up with udisks changes in how options are handled
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduwindow.c | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index dc443a1..786b87b 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -1528,7 +1528,6 @@ on_change_filesystem_label (GduWindow *window)
const gchar *label;
ChangeFilesystemLabelData data;
const gchar *label_to_set;
- const gchar *options[] = {NULL};
object = gdu_volume_grid_get_selected_device (GDU_VOLUME_GRID (window->volume_grid));
g_assert (object != NULL);
@@ -1563,7 +1562,7 @@ on_change_filesystem_label (GduWindow *window)
udisks_filesystem_call_set_label (filesystem,
label_to_set,
- options, /* options */
+ g_variant_new ("a{sv}", NULL), /* options */
NULL, /* cancellable */
(GAsyncReadyCallback) change_filesystem_label_cb,
g_object_ref (window));
@@ -1747,13 +1746,11 @@ on_devtab_action_mount_activated (GtkAction *action,
GduWindow *window = GDU_WINDOW (user_data);
UDisksObject *object;
UDisksFilesystem *filesystem;
- const gchar *options[] = {NULL};
object = gdu_volume_grid_get_selected_device (GDU_VOLUME_GRID (window->volume_grid));
filesystem = udisks_object_peek_filesystem (object);
udisks_filesystem_call_mount (filesystem,
- "", /* filesystem type */
- options, /* options */
+ g_variant_new ("a{sv}", NULL), /* options */
NULL, /* cancellable */
(GAsyncReadyCallback) mount_cb,
g_object_ref (window));
@@ -1789,12 +1786,11 @@ on_devtab_action_unmount_activated (GtkAction *action,
GduWindow *window = GDU_WINDOW (user_data);
UDisksObject *object;
UDisksFilesystem *filesystem;
- const gchar *options[] = {NULL};
object = gdu_volume_grid_get_selected_device (GDU_VOLUME_GRID (window->volume_grid));
filesystem = udisks_object_peek_filesystem (object);
udisks_filesystem_call_unmount (filesystem,
- options, /* options */
+ g_variant_new ("a{sv}", NULL), /* options */
NULL, /* cancellable */
(GAsyncReadyCallback) unmount_cb,
g_object_ref (window));
@@ -1874,12 +1870,11 @@ on_devtab_action_activate_swap_activated (GtkAction *action, gpointer user_data)
GduWindow *window = GDU_WINDOW (user_data);
UDisksObject *object;
UDisksSwapspace *swapspace;
- const gchar *options[] = {NULL};
object = gdu_volume_grid_get_selected_device (GDU_VOLUME_GRID (window->volume_grid));
swapspace = udisks_object_peek_swapspace (object);
udisks_swapspace_call_start (swapspace,
- options, /* options */
+ g_variant_new ("a{sv}", NULL), /* options */
NULL, /* cancellable */
(GAsyncReadyCallback) swapspace_start_cb,
g_object_ref (window));
@@ -1912,12 +1907,11 @@ on_devtab_action_deactivate_swap_activated (GtkAction *action, gpointer user_dat
GduWindow *window = GDU_WINDOW (user_data);
UDisksObject *object;
UDisksSwapspace *swapspace;
- const gchar *options[] = {NULL};
object = gdu_volume_grid_get_selected_device (GDU_VOLUME_GRID (window->volume_grid));
swapspace = udisks_object_peek_swapspace (object);
udisks_swapspace_call_stop (swapspace,
- options, /* options */
+ g_variant_new ("a{sv}", NULL), /* options */
NULL, /* cancellable */
(GAsyncReadyCallback) swapspace_stop_cb,
g_object_ref (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]