aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-account-setup.c
diff options
context:
space:
mode:
authorPraveen Kumar <kpraveen@novell.com>2005-07-08 21:45:19 +0800
committerPraveen Kumar <kpraveen@src.gnome.org>2005-07-08 21:45:19 +0800
commita8ce8864c08bb3972c73818491fe6475a4acf017 (patch)
tree1be88b9f734181092093d0e8ed047c9c66ec31b1 /plugins/exchange-operations/exchange-account-setup.c
parent661a270d4b787a9c21b65070bcca451f089a2d9a (diff)
downloadgsoc2013-evolution-a8ce8864c08bb3972c73818491fe6475a4acf017.tar.gz
gsoc2013-evolution-a8ce8864c08bb3972c73818491fe6475a4acf017.tar.zst
gsoc2013-evolution-a8ce8864c08bb3972c73818491fe6475a4acf017.zip
Added entries for the files providing the delegation assistant feature
2005-07-08 Praveen Kumar <kpraveen@novell.com> * Makefile.am : Added entries for the files providing the delegation assistant feature * exchange-user-dialog.c : Added new * exchange-user-dialog.h : Added new * exchange-account-setup.c (btn_dass_clicked) : Enabled the code for for invoking the delegation assistant window * exchange-delegates-user.c : Modified to include the header files from include path instead of the local directory * exchange-permissions-dialog.c : Modified an occurence to include the file exchange-user-dialog.c instead of e2k-folder-dialog.c svn path=/trunk/; revision=29686
Diffstat (limited to 'plugins/exchange-operations/exchange-account-setup.c')
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 34a527ee39..aeb0e2ea5f 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -46,6 +46,7 @@
#include "exchange-folder-size-display.h"
#include "mail/em-account-editor.h"
#include "mail/em-config.h"
+#include "exchange-delegates.h"
GtkWidget* org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data);
@@ -135,16 +136,8 @@ static void
btn_dass_clicked (GtkButton *button, gpointer data)
{
ExchangeAccount *account;
- GSList *acclist;
-
- acclist = exchange_config_listener_get_accounts (exchange_global_config_listener);
-
- /* FIXME: For now, we have only one account in the list.
- Find a way to handle multiple accounts.
- */
- account = acclist->data;
-
- /* TODO: Put delegate assistant display code here */
+ account = exchange_operations_get_exchange_account ();
+ exchange_delegates (account, gtk_widget_get_ancestor (GTK_WIDGET (button), GTK_TYPE_WINDOW));
}
static void
@@ -330,8 +323,8 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data)
lbl_dass = (GtkLabel*) gtk_object_new (GTK_TYPE_LABEL, "label", _("Manage the delegate settings for Exchange account"), NULL);
gtk_misc_set_alignment (GTK_MISC (lbl_dass), 0, 0.5);
btn_dass = (GtkButton*) gtk_object_new (GTK_TYPE_BUTTON, "label", _("Delegation Assitant"));
+ gtk_signal_connect (GTK_OBJECT (btn_chpass), "clicked", G_CALLBACK (btn_chpass_clicked), NULL);
gtk_signal_connect (GTK_OBJECT (btn_dass), "clicked", G_CALLBACK (btn_dass_clicked), NULL);
-
/* Add items to the table */
gtk_table_attach_defaults (tbl_auth, GTK_WIDGET (lbl_chpass), 0, 1, 0, 1);
gtk_table_attach (tbl_auth, GTK_WIDGET (btn_chpass), 1, 2, 0, 1, GTK_FILL, GTK_FILL, 0, 0);