diff options
author | Shakti Sen <shprasad@novell.com> | 2005-07-25 13:49:37 +0800 |
---|---|---|
committer | Shakti Prasad Sen <shaktis@src.gnome.org> | 2005-07-25 13:49:37 +0800 |
commit | 6d60d66e973a67e417bcf919c830f6ee4db93eec (patch) | |
tree | 97fcd2c62d6a7c085c022395543e70ca1e0b0549 | |
parent | c40a953222f53552777b91cf58523bbd3310e081 (diff) | |
download | gsoc2013-evolution-6d60d66e973a67e417bcf919c830f6ee4db93eec.tar.gz gsoc2013-evolution-6d60d66e973a67e417bcf919c830f6ee4db93eec.tar.zst gsoc2013-evolution-6d60d66e973a67e417bcf919c830f6ee4db93eec.zip |
Creating the dialog and getting the user.
2005-07-25 Shakti Sen <shprasad@novell.com>
* exchange-permissions-dialog.c (add_clicked): Creating the dialog
and getting the user.
Fixes bug #311096.
svn path=/trunk/; revision=29875
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/exchange-operations/exchange-permissions-dialog.c | 13 |
2 files changed, 19 insertions, 1 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index 82fafcb8fd..1e22cf4462 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,10 @@ +2005-07-25 Shakti Sen <shprasad@novell.com> + + * exchange-permissions-dialog.c (add_clicked): Creating the dialog + and getting the user. + + Fixes bug #311096. + 2005-07-20 Shakti Sen <shprasad@novell.com> * Makefile.am: Included files org-gnome-exchange-ab-subscription.xml, diff --git a/plugins/exchange-operations/exchange-permissions-dialog.c b/plugins/exchange-operations/exchange-permissions-dialog.c index e312ff1a7b..46414d7bff 100644 --- a/plugins/exchange-operations/exchange-permissions-dialog.c +++ b/plugins/exchange-operations/exchange-permissions-dialog.c @@ -389,11 +389,14 @@ add_clicked (GtkButton *button, gpointer user_data) E2kGlobalCatalogEntry *entry; E2kSid *sid2; GtkTreeIter iter; + GtkWidget *user_dialog; const guint8 *bsid, *bsid2; char *email = NULL; gboolean valid; + gint result; gc = exchange_account_get_global_catalog (dialog->priv->account); + if (!gc) { e_notice (dialog, GTK_MESSAGE_ERROR, _("Unable to add user to access control list:\n" @@ -401,7 +404,15 @@ add_clicked (GtkButton *button, gpointer user_data) return; } - //FIXME: to get the email + user_dialog = e2k_user_dialog_new (GTK_WIDGET (dialog), _("Add User:"), _("Add User")); + result = gtk_dialog_run (GTK_DIALOG (user_dialog)); + + if (result == GTK_RESPONSE_OK) + email = e2k_user_dialog_get_user (E2K_USER_DIALOG (user_dialog)); + else + email = NULL; + gtk_widget_destroy (user_dialog); + if (email == NULL) return; |