[evolution-patches] Exchange: patch for bug #311096



Hi,

I have attached a patch for bug #311096. This is to create the user dialog at the time of 'Add' button clicked and add it to the name-role view. Please review the patch.

Thanks,
Shakti

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/ChangeLog,v
retrieving revision 1.28
diff -u -p -r1.28 ChangeLog
--- ChangeLog	22 Jul 2005 10:25:22 -0000	1.28
+++ ChangeLog	22 Jul 2005 12:13:09 -0000
@@ -1,3 +1,10 @@
+2005-07-22  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,
Index: exchange-permissions-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/exchange-permissions-dialog.c,v
retrieving revision 1.5
diff -u -p -r1.5 exchange-permissions-dialog.c
--- exchange-permissions-dialog.c	19 Jul 2005 09:36:43 -0000	1.5
+++ exchange-permissions-dialog.c	22 Jul 2005 12:13:10 -0000
@@ -389,11 +389,14 @@ add_clicked (GtkButton *button, gpointer
 	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
 		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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]