aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-17 04:45:56 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-17 04:45:56 +0800
commitc1c5688c54f8da7ee968f59132cc1878d0138f89 (patch)
tree41a6b137f47e3ace1c03f84f8267876752efe1c3 /widgets/table/e-table-config.c
parent4363b68c1c9140c4063c786926608ad58ff52f6d (diff)
downloadgsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.tar
gsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.tar.gz
gsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.tar.bz2
gsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.tar.lz
gsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.tar.xz
gsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.tar.zst
gsoc2013-evolution-c1c5688c54f8da7ee968f59132cc1878d0138f89.zip
Added a bit of documentation. (config_sort_config_show,
2001-01-16 Christopher James Lahey <clahey@helixcode.com> * e-table-config.c: Added a bit of documentation. (config_sort_config_show, config_group_config_show): gnome_dialog_set_parent on the config->dialog_toplevel instead of the config. * e-table-specification: Pass "1.0" instead of NULL to xmlNewDoc here. * e-table-state.c, e-table-state.h: Pass "1.0" instead of NULL to xmlNewDoc here. Make sure that sort_info is never NULL if this object exists. Added ETableStateDuplicate. svn path=/trunk/; revision=7542
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 1c84dae657..bcefb1b53c 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -86,7 +86,7 @@ config_sort_config_show (GtkWidget *widget, ETableConfig *config)
etcf, FALSE, FALSE, 0);
gnome_dialog_set_parent (
GNOME_DIALOG (config->sort_dialog),
- GTK_WINDOW(config));
+ GTK_WINDOW(config->dialog_toplevel));
gtk_signal_connect (
GTK_OBJECT (config->sort_dialog), "destroy",
@@ -117,7 +117,7 @@ config_group_config_show (GtkWidget *widget, ETableConfig *config)
TRUE));
gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(config->group_dialog)->vbox), etcf, FALSE, FALSE, 0);
gnome_dialog_set_parent(GNOME_DIALOG(config->group_dialog),
- GTK_WINDOW(config));
+ GTK_WINDOW(config->dialog_toplevel));
gtk_signal_connect(GTK_OBJECT(config->group_dialog), "destroy",
GTK_SIGNAL_FUNC(config_clear_group), config);
@@ -212,7 +212,7 @@ config_fields_info_update (ETableConfig *config)
int i, items = 0;
for (i = 0; i < config->state->col_count; i++){
- for (column = config->spec->columns; *column; *column++){
+ for (column = config->spec->columns; *column; column++){
if (config->state->columns [i] != (*column)->model_col)
continue;
@@ -339,6 +339,16 @@ e_table_config_construct (ETableConfig *config,
return E_TABLE_CONFIG (config);
}
+/**
+ * e_table_config_new:
+ * @header: The title of the dialog for the ETableConfig.
+ * @spec: The specification for the columns to allow.
+ * @state: The current state of the configuration.
+ *
+ * Creates a new ETable config object.
+ *
+ * Returns: The config object.
+ */
ETableConfig *
e_table_config_new (const char *header,
ETableSpecification *spec,
@@ -355,6 +365,12 @@ e_table_config_new (const char *header,
return E_TABLE_CONFIG (config);
}
+/**
+ * e_table_config_raise:
+ * @config: The ETableConfig object.
+ *
+ * Raises the dialog associated with this ETableConfig object.
+ */
void
e_table_config_raise (ETableConfig *config)
{