aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-09-08 02:57:34 +0800
committerChris Lahey <clahey@src.gnome.org>2001-09-08 02:57:34 +0800
commit60e65ee806fe4c65eba3aacb5bccf87f9f90b04d (patch)
tree717ad04758c0f4a5f7b7f8481b00535d58d6cc5b /widgets/table/e-table-config.c
parent3f2384a8729d05203f0ce4d4dc9b3de236f9c18c (diff)
downloadgsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.tar
gsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.tar.gz
gsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.tar.bz2
gsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.tar.lz
gsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.tar.xz
gsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.tar.zst
gsoc2013-evolution-60e65ee806fe4c65eba3aacb5bccf87f9f90b04d.zip
Added e-table-config-no-group.glade.
2001-09-07 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-table-config-no-group.glade. * e-table-config-no-group.glade, e-table-config.c, e-table-config.glade: Removed the fields bit of ETableConfig. svn path=/trunk/; revision=12678
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 93dd0d31cf..1c379a2a5b 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -465,9 +465,10 @@ connect_button (ETableConfig *config, GladeXML *gui, const char *widget_name, vo
{
GtkWidget *button = glade_xml_get_widget (gui, widget_name);
- gtk_signal_connect(
- GTK_OBJECT (button), "clicked",
- GTK_SIGNAL_FUNC (cback), config);
+ if (button) {
+ gtk_signal_connect (GTK_OBJECT (button), "clicked",
+ GTK_SIGNAL_FUNC (cback), config);
+ }
}
static void
@@ -687,8 +688,13 @@ configure_group_dialog (ETableConfig *config, GladeXML *gui)
static void
setup_gui (ETableConfig *config)
{
- GladeXML *gui = glade_xml_new_with_domain (
- ETABLE_GLADEDIR "/e-table-config.glade", NULL, PACKAGE);
+ GladeXML *gui;
+
+ if (e_table_sort_info_get_can_group (config->state->sort_info)) {
+ gui = glade_xml_new_with_domain (ETABLE_GLADEDIR "/e-table-config.glade", NULL, PACKAGE);
+ } else {
+ gui = glade_xml_new_with_domain (ETABLE_GLADEDIR "/e-table-config-no-group.glade", NULL, PACKAGE);
+ }
config->dialog_toplevel = glade_xml_get_widget (
gui, "e-table-config");
@@ -727,12 +733,6 @@ setup_gui (ETableConfig *config)
GTK_OBJECT (config->dialog_toplevel), "apply",
GTK_SIGNAL_FUNC (dialog_apply), config);
- if (!e_table_sort_info_get_can_group (config->state->sort_info)) {
- GtkWidget *button = glade_xml_get_widget (gui, "button-group");
- gtk_widget_hide (button);
- gtk_widget_hide (config->group_label);
- }
-
gtk_object_unref (GTK_OBJECT (gui));
}