aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-12-11 18:10:02 +0800
committerChris Lahey <clahey@src.gnome.org>2001-12-11 18:10:02 +0800
commita014ee43098b151f622d10fca6fd426badfb16c6 (patch)
treecc6b1c625b8a93e8e55091f861e69831653b446c /widgets/table
parentdc83cb0331bdf0372c3db677033bccd6e39de832 (diff)
downloadgsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.tar
gsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.tar.gz
gsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.tar.bz2
gsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.tar.lz
gsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.tar.xz
gsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.tar.zst
gsoc2013-evolution-a014ee43098b151f622d10fca6fd426badfb16c6.zip
Merging files:
2001-12-06 Christopher James Lahey <clahey@ximian.com> * e-table-config.c, e-table-config.h (setup_gui): Set the title of the window here. * e-table-header-item.c (ethi_popup_customize_view): Use a useful string for the header here. svn path=/trunk/; revision=14975
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-config.c5
-rw-r--r--widgets/table/e-table-config.h2
-rw-r--r--widgets/table/e-table-header-item.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 36f3faf9d3..030f11b2f1 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -69,6 +69,7 @@ config_destroy (GtkObject *object)
gtk_object_destroy (GTK_OBJECT (config->state));
gtk_object_unref (GTK_OBJECT (config->source_state));
gtk_object_unref (GTK_OBJECT (config->source_spec));
+ g_free (config->header);
g_slist_free (config->column_names);
config->column_names = NULL;
@@ -725,6 +726,9 @@ setup_gui (ETableConfig *config)
config->dialog_toplevel = glade_xml_get_widget (
gui, "e-table-config");
+ if (config->header)
+ gtk_window_set_title (GTK_WINDOW (config->dialog_toplevel), config->header);
+
gtk_widget_hide (GNOME_PROPERTY_BOX(config->dialog_toplevel)->help_button);
gtk_notebook_set_show_tabs (
@@ -785,6 +789,7 @@ e_table_config_construct (ETableConfig *config,
config->source_spec = spec;
config->source_state = state;
+ config->header = g_strdup (header);
gtk_object_ref (GTK_OBJECT (config->source_spec));
gtk_object_ref (GTK_OBJECT (config->source_state));
diff --git a/widgets/table/e-table-config.h b/widgets/table/e-table-config.h
index d2b575eac0..b87aa14d64 100644
--- a/widgets/table/e-table-config.h
+++ b/widgets/table/e-table-config.h
@@ -52,6 +52,8 @@ typedef struct {
typedef struct {
GtkObject parent;
+ char *header;
+
/*
* Our various dialog boxes
*/
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 617b438dd9..0c47e12c77 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -1299,7 +1299,7 @@ ethi_popup_customize_view(GtkWidget *widget, EthiHeaderInfo *info)
return;
ethi->config = e_table_config_new (
- _("Configuring view: FIXME"),
+ _("Customize Current View"),
spec, state);
gtk_signal_connect (
GTK_OBJECT (ethi->config), "destroy",