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