[balsa] Set "Update" button sensitive when a control is changed
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Set "Update" button sensitive when a control is changed
- Date: Fri, 11 Sep 2009 01:23:52 +0000 (UTC)
commit 2334c9c38c273b904f08ec4dfe3bc0dafa299ac0
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Sep 10 21:23:44 2009 -0400
Set "Update" button sensitive when a control is changed
ChangeLog | 6 ++++++
src/mailbox-conf.c | 15 +++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1b568d6..77d743a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-10 Peter Bloomfield
+
+ * src/mailbox-conf.c (mailbox_conf_view_cb),
+ (mailbox_conf_view_new_with_size_group): set "Update" button
+ sensitive when a control is changed.
+
2009-09-07 Peter Bloomfield
* src/main.c (balsa_handle_automation_options): encode URI for
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index e1617e6..9aaf368 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -1382,6 +1382,13 @@ mailbox_conf_view_free(BalsaMailboxConfView *view_info)
* table: the table in which to place the widgets;
* row: the row of the table in which to start.
*/
+static void
+mailbox_conf_view_cb(GtkWidget * widget, gpointer data)
+{
+ gtk_dialog_set_response_sensitive(GTK_DIALOG(data),
+ MCW_RESPONSE, TRUE);
+}
+
static BalsaMailboxConfView *
mailbox_conf_view_new_with_size_group(LibBalsaMailbox * mailbox,
GtkWindow * window,
@@ -1405,6 +1412,8 @@ mailbox_conf_view_new_with_size_group(LibBalsaMailbox * mailbox,
gtk_size_group_add_widget(size_group, label);
view_info->identity_combo_box = widget = gtk_combo_box_new_text();
+ g_signal_connect(view_info->identity_combo_box, "changed",
+ G_CALLBACK(mailbox_conf_view_cb), window);
gtk_label_set_mnemonic_widget(GTK_LABEL(label), widget);
identity_name = libbalsa_mailbox_get_identity_name(mailbox);
for (list = balsa_app.identities, active = 0; list;
@@ -1438,6 +1447,8 @@ mailbox_conf_view_new_with_size_group(LibBalsaMailbox * mailbox,
gtk_size_group_add_widget(size_group, label);
view_info->chk_crypt = gtk_combo_box_new_text();
+ g_signal_connect(view_info->chk_crypt, "changed",
+ G_CALLBACK(mailbox_conf_view_cb), window);
gtk_label_set_mnemonic_widget(GTK_LABEL(label), view_info->chk_crypt);
mailbox_conf_combo_box_make(GTK_COMBO_BOX(view_info->chk_crypt),
ELEMENTS(chk_crypt_menu),
@@ -1457,6 +1468,8 @@ mailbox_conf_view_new_with_size_group(LibBalsaMailbox * mailbox,
table, ++row,
libbalsa_mailbox_get_show(mailbox) ==
LB_MAILBOX_SHOW_TO);
+ g_signal_connect(view_info->show_to, "toggled",
+ G_CALLBACK(mailbox_conf_view_cb), window);
/* Subscribe check button */
view_info->subscribe =
@@ -1464,6 +1477,8 @@ mailbox_conf_view_new_with_size_group(LibBalsaMailbox * mailbox,
++row,
libbalsa_mailbox_get_subscribe(mailbox) !=
LB_MAILBOX_SUBSCRIBE_NO);
+ g_signal_connect(view_info->subscribe, "toggled",
+ G_CALLBACK(mailbox_conf_view_cb), window);
return view_info;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]