diff options
author | Sarfraaz Ahmed <asarfraaz@novell.com> | 2005-07-07 19:35:04 +0800 |
---|---|---|
committer | Ahmed Sarfraaz <sarfraaz@src.gnome.org> | 2005-07-07 19:35:04 +0800 |
commit | 9d190a6f2cd1c9072e4c1d43018e4a584947460e (patch) | |
tree | d8f6b3f1e8a2e3949c98c36aebeaad47c4a1353d /plugins/exchange-operations | |
parent | 23213e933d62114a82ce54a5d64dac78c4e0d665 (diff) | |
download | gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.tar gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.tar.gz gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.tar.bz2 gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.tar.lz gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.tar.xz gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.tar.zst gsoc2013-evolution-9d190a6f2cd1c9072e4c1d43018e4a584947460e.zip |
Implemented new to invoke the folder size table.
2005-07-07 Sarfraaz Ahmed <asarfraaz@novell.com>
* exchange-account-setup.c (btn_fsize_clicked) : Implemented new to
invoke the folder size table.
(org_gnome_exchange_settings) : Minor re-ordering
* exchange-folder-size-display.c : Newly added to handle the UI code
for folder size display
* exchange-folder-size-display.h : Similar
* exchange-folder-size.[ch] : Removed
* Makefile.am : Include exchange-folder-size-display.[ch]
svn path=/trunk/; revision=29668
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 11 | ||||
-rw-r--r-- | plugins/exchange-operations/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/exchange-operations/exchange-account-setup.c | 24 |
3 files changed, 35 insertions, 2 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index 18f31c6d33..d29e76a81e 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,14 @@ +2005-07-07 Sarfraaz Ahmed <asarfraaz@novell.com> + + * exchange-account-setup.c (btn_fsize_clicked) : Implemented new to + invoke the folder size table. + (org_gnome_exchange_settings) : Minor re-ordering + * exchange-folder-size-display.c : Newly added to handle the UI code + for folder size display + * exchange-folder-size-display.h : Similar + * exchange-folder-size.[ch] : Removed + * Makefile.am : Include exchange-folder-size-display.[ch] + 2005-07-05 Sarfraaz Ahmed <asarfraaz@novell.com> * exchange-config-listener.c (add_new_sources) : Newly added. This adds diff --git a/plugins/exchange-operations/Makefile.am b/plugins/exchange-operations/Makefile.am index 2bd1f119c8..260f44a304 100644 --- a/plugins/exchange-operations/Makefile.am +++ b/plugins/exchange-operations/Makefile.am @@ -22,6 +22,8 @@ liborg_gnome_exchange_operations_la_SOURCES = \ exchange-contacts.c \ exchange-change-password.c \ exchange-change-password.h \ + exchange-folder-size-display.c \ + exchange-folder-size-display.h \ exchange-account-setup.c liborg_gnome_exchange_operations_la_LIBADD = \ diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index 84e08e5d4e..b6059ae6e3 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -149,7 +149,19 @@ btn_dass_clicked (GtkButton *button, gpointer data) static void btn_fsize_clicked (GtkButton *button, gpointer data) { - /* TODO: Add folders size display code here */ + ExchangeAccount *account; + GtkListStore *model; + 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; + + model = exchange_account_folder_size_get_model (account); + exchange_folder_size_display (model, button); } /* only used in editor */ @@ -306,14 +318,20 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data) gtk_container_add (GTK_CONTAINER (frm_auth), GTK_WIDGET (vbox_auth)); tbl_auth = (GtkTable*) gtk_object_new (GTK_TYPE_TABLE, "n-rows", 2, "n-columns", 2, "homogeneous", FALSE, "row-spacing", 6, "column-spacing", 6, NULL); + + /* Change Password */ lbl_chpass = (GtkLabel*) gtk_object_new (GTK_TYPE_LABEL, "label", _("Change the password for Exchange account"), NULL); gtk_misc_set_alignment (GTK_MISC (lbl_chpass), 0, 0.5); btn_chpass = (GtkButton*) gtk_object_new (GTK_TYPE_BUTTON, "label", _("Change Password"), NULL); + gtk_signal_connect (GTK_OBJECT (btn_chpass), "clicked", G_CALLBACK (btn_chpass_clicked), NULL); + + /* Delegation Assistant */ 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); gtk_table_attach_defaults (tbl_auth, GTK_WIDGET (lbl_dass), 0, 1, 1, 2); @@ -329,6 +347,8 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data) gtk_container_add (GTK_CONTAINER (frm_misc), GTK_WIDGET (vbox_misc)); tbl_misc = (GtkTable*) gtk_object_new (GTK_TYPE_TABLE, "n-rows", 1, "n-columns", 1, "homogeneous", FALSE, "row-spacing", 6, "column-spacing", 6, NULL); + + /* Folder Size */ lbl_fsize = (GtkLabel*) gtk_object_new (GTK_TYPE_LABEL, "label", _("View the size of all Exchange folders"), NULL); gtk_misc_set_alignment (GTK_MISC (lbl_fsize), 0, 0.5); btn_fsize = (GtkButton*) gtk_object_new (GTK_TYPE_BUTTON, "label", _("Folders Size"), NULL); |