[gnome-system-tools] Use new oobs_object_authenticate in shares-admin
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Use new oobs_object_authenticate in shares-admin
- Date: Mon, 25 Jan 2010 22:37:27 +0000 (UTC)
commit 0a3d14ce8acbae18d3ab8062c6e653c95e330ce3
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sun Jan 17 13:01:13 2010 +0100
Use new oobs_object_authenticate in shares-admin
gst_dialog_authenticate() never actuelly worked, remove it in favor of gst_tool_authenticate().
src/common/gst-dialog.c | 13 -------------
src/shares/shares-tool.c | 3 ++-
2 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/common/gst-dialog.c b/src/common/gst-dialog.c
index f528da5..e74a315 100644
--- a/src/common/gst-dialog.c
+++ b/src/common/gst-dialog.c
@@ -724,16 +724,3 @@ gst_dialog_stop_editing (GstDialog *dialog)
g_slist_free (priv->edit_dialogs);
priv->edit_dialogs = NULL;
}
-
-void
-gst_dialog_authenticate (GstDialog *dialog)
-{
-#ifdef HAVE_POLKIT
- GstDialogPrivate *priv;
-
- if (!gst_dialog_is_authenticated (dialog)) {
- priv = GST_DIALOG_GET_PRIVATE (dialog);
- gtk_button_clicked (GTK_BUTTON (priv->polkit_button));
- }
-#endif
-}
diff --git a/src/shares/shares-tool.c b/src/shares/shares-tool.c
index 8d8c1a0..69fddd0 100644
--- a/src/shares/shares-tool.c
+++ b/src/shares/shares-tool.c
@@ -191,7 +191,8 @@ gst_shares_tool_update_gui (GstTool *tool)
users_table_set_config (shares_tool);
if (shares_tool->path) {
- gst_dialog_authenticate (tool->main_dialog);
+ gst_tool_authenticate (tool, GST_SHARES_TOOL (tool)->smb_config);
+ gst_tool_authenticate (tool, GST_SHARES_TOOL (tool)->nfs_config);
share_settings_dialog_run (shares_tool->path, TRUE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]