aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-09-27 16:35:24 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-09-27 16:35:24 +0800
commit5311b63b88e4a547755219bb5120431bc1be0fc8 (patch)
tree916f75775859fc9de667d21f839f513de47f2a53 /widgets/table/e-table-config.c
parentca9ceb157cff46f1ecddd0b807d9b7776c0f7ca1 (diff)
downloadgsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.tar
gsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.tar.gz
gsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.tar.bz2
gsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.tar.lz
gsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.tar.xz
gsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.tar.zst
gsoc2013-evolution-5311b63b88e4a547755219bb5120431bc1be0fc8.zip
2007-09-27 mcrha Fix for bug #479716 (needs run autogen.sh)
svn path=/trunk/; revision=34316
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c37
1 files changed, 23 insertions, 14 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 130ab8529a..d7c6fad7af 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -1196,24 +1196,17 @@ static void
setup_gui (ETableConfig *config)
{
GladeXML *gui;
+ gboolean can_group;
+ gchar *filename;
create_global_store (config);
- if (e_table_sort_info_get_can_group (config->state->sort_info)) {
- gchar *filename =
- g_build_filename (EVOLUTION_GLADEDIR,
+ can_group = e_table_sort_info_get_can_group (config->state->sort_info);
+ filename = g_build_filename (EVOLUTION_GLADEDIR,
"e-table-config.glade",
NULL);
- gui = glade_xml_new (filename, NULL, GETTEXT_PACKAGE);
- g_free (filename);
- } else {
- gchar *filename =
- g_build_filename (EVOLUTION_GLADEDIR,
- "e-table-config-no-group.glade",
- NULL);
- gui = glade_xml_new (filename, NULL, GETTEXT_PACKAGE);
- g_free (filename);
- }
+ gui = glade_xml_new (filename, NULL, GETTEXT_PACKAGE);
+ g_free (filename);
g_object_unref (global_store);
@@ -1240,7 +1233,23 @@ setup_gui (ETableConfig *config)
connect_button (config, gui, "button-sort", G_CALLBACK (config_button_sort));
connect_button (config, gui, "button-group", G_CALLBACK (config_button_group));
connect_button (config, gui, "button-fields", G_CALLBACK (config_button_fields));
-
+
+ if (!can_group) {
+ GtkWidget *w;
+
+ w = glade_xml_get_widget (gui, "button-group");
+ if (w)
+ gtk_widget_hide (w);
+
+ w = glade_xml_get_widget (gui, "label3");
+ if (w)
+ gtk_widget_hide (w);
+
+ w = config->group_label;
+ if (w)
+ gtk_widget_hide (w);
+ }
+
configure_sort_dialog (config, gui);
configure_group_dialog (config, gui);
configure_fields_dialog (config, gui);