From d67cc3d9cae4026acc54c04dbfe0f69d7c8cf53d Mon Sep 17 00:00:00 2001 From: Shakti Sen Date: Fri, 30 Sep 2005 06:37:42 +0000 Subject: Sets the corresponding 'Folder name'. (create_folder_subscription_dialog): 2005-09-30 Shakti Sen * exchange-folder-subscription.c (setup_folder_name_combo): Sets the corresponding 'Folder name'. (create_folder_subscription_dialog): Sets the cursor to User's entry text field. * exchange-folder-subscription.h: Added one more argument to function create_folder_subscription_dialog() to set the window title. * exchange-folder.c (org_gnome_exchange_inbox_subscription), (org_gnome_exchange_addressbook_subscription), (org_gnome_exchange_calendar_subscription), (org_gnome_exchange_tasks_subscription): Added newly. * org-gnome-exchange-operations.eplug.in: Changed the activate callback function names so that it can show appropriate window title. Fixes bug #317019, #317023. svn path=/trunk/; revision=30426 --- plugins/exchange-operations/exchange-folder.c | 34 ++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'plugins/exchange-operations/exchange-folder.c') diff --git a/plugins/exchange-operations/exchange-folder.c b/plugins/exchange-operations/exchange-folder.c index ab1c419650..bfdf2babee 100644 --- a/plugins/exchange-operations/exchange-folder.c +++ b/plugins/exchange-operations/exchange-folder.c @@ -43,7 +43,11 @@ #include "addressbook/gui/widgets/eab-popup.h" #include "exchange-folder-subscription.h" -void org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target); +void org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target, gchar *fname); +void org_gnome_exchange_inbox_subscription (EPlugin *ep, EMMenuTargetSelect *target); +void org_gnome_exchange_addressbook_subscription (EPlugin *ep, EMMenuTargetSelect *target); +void org_gnome_exchange_calendar_subscription (EPlugin *ep, EMMenuTargetSelect *target); +void org_gnome_exchange_tasks_subscription (EPlugin *ep, EMMenuTargetSelect *target); void org_gnome_exchange_check_subscribed (EPlugin *ep, ECalPopupTargetSource *target); void org_gnome_exchange_folder_unsubscribe (EPopup *ep, EPopupItem *p, void *data); void org_gnome_exchange_check_address_book_subscribed (EPlugin *ep, EABPopupTargetSource *target); @@ -540,7 +544,7 @@ org_gnome_exchange_folder_unsubscribe (EPopup *ep, EPopupItem *p, void *data) void -org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target) +org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target, gchar *fname) { ExchangeAccount *account = NULL; EFolder *folder = NULL; @@ -570,7 +574,7 @@ org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target) return; } - create_folder_subscription_dialog (account->account_name, &user_email_address, &folder_name); + create_folder_subscription_dialog (account->account_name, fname, &user_email_address, &folder_name); if (user_email_address && folder_name) { result = exchange_account_discover_shared_folder (account, user_email_address, folder_name, &folder); @@ -611,3 +615,27 @@ org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target) exchange_account_open_folder (account, g_strdup_printf ("/%s", user_email_address)); } +void +org_gnome_exchange_calendar_subscription (EPlugin *ep, EMMenuTargetSelect *target) +{ + gchar *folder_name = "Calendar"; + org_gnome_exchange_folder_subscription (ep, target, folder_name); +} +void +org_gnome_exchange_addressbook_subscription (EPlugin *ep, EMMenuTargetSelect *target) +{ + gchar *folder_name = "Contacts"; + org_gnome_exchange_folder_subscription (ep, target, folder_name); +} +void +org_gnome_exchange_tasks_subscription (EPlugin *ep, EMMenuTargetSelect *target) +{ + gchar *folder_name = "Tasks"; + org_gnome_exchange_folder_subscription (ep, target, folder_name); +} +void +org_gnome_exchange_inbox_subscription (EPlugin *ep, EMMenuTargetSelect *target) +{ + gchar *folder_name = "Inbox"; + org_gnome_exchange_folder_subscription (ep, target, folder_name); +} -- cgit