[gnome-disk-utility] update to DeviceKit-disks HEAD that only exports a
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-disk-utility] update to DeviceKit-disks HEAD that only exports a
- Date: Sun, 15 Mar 2009 13:08:58 -0400 (EDT)
commit 8db46a12062bdf7ec85807965b3cbf6a1fc98a94
Author: David Zeuthen <davidz redhat com>
Date: Sun Mar 15 13:06:42 2009 -0400
update to DeviceKit-disks HEAD that only exports a single Linux MD action
---
src/palimpsest/gdu-section-linux-md-drive.c | 28 ---------------------------
src/palimpsest/gdu-shell.c | 1 -
2 files changed, 0 insertions(+), 29 deletions(-)
diff --git a/src/palimpsest/gdu-section-linux-md-drive.c b/src/palimpsest/gdu-section-linux-md-drive.c
index 7b8f206..a1195b9 100644
--- a/src/palimpsest/gdu-section-linux-md-drive.c
+++ b/src/palimpsest/gdu-section-linux-md-drive.c
@@ -50,7 +50,6 @@ struct _GduSectionLinuxMdDrivePrivate
#endif
PolKitAction *pk_linux_md_action;
- PolKitAction *pk_linux_md_system_internal_action;
PolKitGnomeAction *attach_action;
PolKitGnomeAction *detach_action;
@@ -515,28 +514,6 @@ linux_md_buttons_update (GduSectionLinuxMdDrive *section)
}
}
- g_object_set (section->priv->attach_action,
- "polkit-action",
- gdu_device_is_system_internal (device) ?
- section->priv->pk_linux_md_system_internal_action :
- section->priv->pk_linux_md_action,
- NULL);
-
- g_object_set (section->priv->detach_action,
- "polkit-action",
- gdu_device_is_system_internal (device) ?
- section->priv->pk_linux_md_system_internal_action :
- section->priv->pk_linux_md_action,
- NULL);
-
- g_object_set (section->priv->add_action,
- "polkit-action",
- gdu_device_is_system_internal (device) ?
- section->priv->pk_linux_md_system_internal_action :
- section->priv->pk_linux_md_action,
- NULL);
-
-
out:
polkit_gnome_action_set_sensitive (section->priv->attach_action, show_attach_to_array_button);
polkit_gnome_action_set_sensitive (section->priv->detach_action, show_detach_from_array_button);
@@ -829,7 +806,6 @@ static void
gdu_section_linux_md_drive_finalize (GduSectionLinuxMdDrive *section)
{
polkit_action_unref (section->priv->pk_linux_md_action);
- polkit_action_unref (section->priv->pk_linux_md_system_internal_action);
g_object_unref (section->priv->attach_action);
g_object_unref (section->priv->detach_action);
g_object_unref (section->priv->add_action);
@@ -870,10 +846,6 @@ gdu_section_linux_md_drive_init (GduSectionLinuxMdDrive *section)
polkit_action_set_action_id (section->priv->pk_linux_md_action,
"org.freedesktop.devicekit.disks.linux-md");
- section->priv->pk_linux_md_system_internal_action = polkit_action_new ();
- polkit_action_set_action_id (section->priv->pk_linux_md_system_internal_action,
- "org.freedesktop.devicekit.disks.linux-md-system-internal");
-
gtk_box_set_spacing (GTK_BOX (section), 8);
table = gtk_table_new (4, 2, FALSE);
diff --git a/src/palimpsest/gdu-shell.c b/src/palimpsest/gdu-shell.c
index 2d98523..8a0da93 100644
--- a/src/palimpsest/gdu-shell.c
+++ b/src/palimpsest/gdu-shell.c
@@ -819,7 +819,6 @@ gdu_shell_update (GduShell *shell)
}
}
-
/* update all GtkActions */
polkit_gnome_action_set_sensitive (shell->priv->mount_action, can_mount);
polkit_gnome_action_set_sensitive (shell->priv->fsck_action, can_fsck);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]