aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorCharles Zhang <charles.zhang@sun.com>2003-11-03 21:40:49 +0800
committerAntonio Xu <anto@src.gnome.org>2003-11-03 21:40:49 +0800
commit240bdec15b67fad09e0213974cfe1f6b9f6587e1 (patch)
treef4667a8abf8787ce3e65f47c47684f1aede7f109 /widgets/table
parent97003e3366eee6629aa50b95468e74939c38c68c (diff)
downloadgsoc2013-evolution-240bdec15b67fad09e0213974cfe1f6b9f6587e1.tar.gz
gsoc2013-evolution-240bdec15b67fad09e0213974cfe1f6b9f6587e1.tar.zst
gsoc2013-evolution-240bdec15b67fad09e0213974cfe1f6b9f6587e1.zip
disable apply button when initial dialog. disable apply button after
2003-10-13 Charles Zhang <charles.zhang@sun.com> * e-table-config.c (e_table_config_new): disable apply button when initial dialog. * e-table-header-item.c (apply_changes): disable apply button after applying changes. svn path=/trunk/; revision=23168
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-config.c3
-rw-r--r--widgets/table/e-table-header-item.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 9d8afdb20b..4ec25b0900 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -1182,7 +1182,10 @@ e_table_config_new (const char *header,
return NULL;
}
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (config->dialog_toplevel),
+ GTK_RESPONSE_APPLY, FALSE);
gtk_widget_show (config->dialog_toplevel);
+
return E_TABLE_CONFIG (config);
}
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 3735011dc8..c27108b8d7 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -1426,6 +1426,9 @@ apply_changes (ETableConfig *config, ETableHeaderItem *ethi)
if (ethi->tree)
e_tree_set_state (ethi->tree, state);
g_free (state);
+
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (config->dialog_toplevel),
+ GTK_RESPONSE_APPLY, FALSE);
}
static void