aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorRodney Dawes <dobey@novell.com>2004-06-23 05:25:59 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-06-23 05:25:59 +0800
commitcc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb (patch)
tree90babdc9769c8cc590d378819dc037e3a0112e89 /widgets/table/e-table-config.c
parentecb35cecb1d7690c69607d8fa738d452b3ffded0 (diff)
downloadgsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.tar
gsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.tar.gz
gsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.tar.bz2
gsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.tar.lz
gsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.tar.xz
gsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.tar.zst
gsoc2013-evolution-cc7c47284a2554f4e46d6cd4d182f5daa4ee1eeb.zip
Fix some spacing and border width properties on the dialog's widgets to
2004-06-22 Rodney Dawes <dobey@novell.com> * e-table-config.c (do_fields_config_dialog, e_table_config_new): Fix some spacing and border width properties on the dialog's widgets to make the dialog compliant with the HIG 2004-06-22 Christopher James Lahey <clahey@ximian.com> * e-table-model.[ch]: Added e_table_model_freeze and e_table_model_thaw * e-table-config.c (setup_fields): Use e_table_model_freeze and e_table_model_thaw Fixes #54785 svn path=/trunk/; revision=26460
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index cc3af93cd9..884bae4ebb 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -365,6 +365,8 @@ setup_fields (ETableConfig *config)
{
int i;
+ e_table_model_freeze (config->available_model);
+ e_table_model_freeze (config->shown_model);
e_table_without_show_all (config->available_model);
e_table_subset_variable_clear (config->shown_model);
@@ -379,6 +381,8 @@ setup_fields (ETableConfig *config)
e_table_without_hide (config->available_model, GINT_TO_POINTER(idx));
}
}
+ e_table_model_thaw (config->available_model);
+ e_table_model_thaw (config->shown_model);
}
static void
@@ -474,6 +478,10 @@ do_fields_config_dialog (ETableConfig *config)
{
int response, running = 1;
+ gtk_widget_ensure_style (config->dialog_show_fields);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (config->dialog_show_fields)->vbox), 0);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (config->dialog_show_fields)->action_area), 12);
+
config->temp_state = e_table_state_duplicate (config->state);
setup_fields (config);
@@ -1189,6 +1197,10 @@ e_table_config_new (const char *header,
return NULL;
}
+ gtk_widget_ensure_style (config->dialog_toplevel);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (config->dialog_toplevel)->vbox), 0);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (config->dialog_toplevel)->action_area), 12);
+
gtk_dialog_set_response_sensitive (GTK_DIALOG (config->dialog_toplevel),
GTK_RESPONSE_APPLY, FALSE);
gtk_widget_show (config->dialog_toplevel);