aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-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",