aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-10-22 10:08:13 +0800
committerChris Lahey <clahey@src.gnome.org>2000-10-22 10:08:13 +0800
commit3e3b5fc7b8cfb5bc15d2c43672f7021173f18854 (patch)
treeeb2229bfd26c5b4001f6fa626935f7f87cb4305a /widgets
parentb00d886cf875101c4e4a4ddcf381bd10138af1c0 (diff)
downloadgsoc2013-evolution-3e3b5fc7b8cfb5bc15d2c43672f7021173f18854.tar.gz
gsoc2013-evolution-3e3b5fc7b8cfb5bc15d2c43672f7021173f18854.tar.zst
gsoc2013-evolution-3e3b5fc7b8cfb5bc15d2c43672f7021173f18854.zip
Added e_table_set_state_object which loads the state from the given
2000-10-20 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Added e_table_set_state_object which loads the state from the given ETableState object. svn path=/trunk/; revision=6099
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table.c8
-rw-r--r--widgets/table/e-table.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 2abd24328a..88e305b88d 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -721,8 +721,8 @@ et_state_to_header (ETable *e_table, ETableHeader *full_header, ETableState *sta
return nh;
}
-static void
-et_set_state(ETable *e_table, ETableState *state)
+void
+e_table_set_state_object(ETable *e_table, ETableState *state)
{
if (e_table->header)
gtk_object_unref(GTK_OBJECT(e_table->header));
@@ -764,7 +764,7 @@ void e_table_set_state (ETable *e_table
e_table_state_load_from_string(state, state_str);
if (state->col_count > 0)
- et_set_state(e_table, state);
+ e_table_set_state_object(e_table, state);
gtk_object_sink(GTK_OBJECT(state));
}
@@ -782,7 +782,7 @@ void e_table_load_state (ETable *e_table
e_table_state_load_from_file(state, filename);
if (state->col_count > 0)
- et_set_state(e_table, state);
+ e_table_set_state_object(e_table, state);
gtk_object_sink(GTK_OBJECT(state));
}
diff --git a/widgets/table/e-table.h b/widgets/table/e-table.h
index e23939e746..2d115e54fb 100644
--- a/widgets/table/e-table.h
+++ b/widgets/table/e-table.h
@@ -194,6 +194,8 @@ ETableState *e_table_get_state_object (ETable *e_table
/* note that it is more efficient to provide the state at creation time */
void e_table_set_state (ETable *e_table,
const gchar *state);
+void e_table_set_state_object (ETable *e_table,
+ ETableState *state);
void e_table_load_state (ETable *e_table,
const gchar *filename);