From 0ec25e9430b540965abe2b1d233291b0f8754ac4 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 29 Apr 2001 11:15:22 +0000 Subject: Added a read only argument "model" to ETable. 2001-04-29 Christopher James Lahey * e-table.c: Added a read only argument "model" to ETable. svn path=/trunk/; revision=9624 --- widgets/table/e-table.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index cf70454eff..2112b2ee2d 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -68,6 +68,7 @@ enum { enum { ARG_0, ARG_LENGTH_THRESHOLD, + ARG_MODEL, }; static gint et_signals [LAST_SIGNAL] = { 0, }; @@ -162,7 +163,7 @@ et_destroy (GtkObject *object) if (et->group_info_change_id) gtk_signal_disconnect (GTK_OBJECT (et->sort_info), et->group_info_change_id); - + if (et->reflow_idle_id) g_source_remove(et->reflow_idle_id); et->reflow_idle_id = 0; @@ -1380,7 +1381,13 @@ e_table_get_printable (ETable *e_table) static void et_get_arg (GtkObject *o, GtkArg *arg, guint arg_id) { + ETable *etable = E_TABLE (o); + switch (arg_id){ + case ARG_MODEL: + GTK_VALUE_OBJECT (*arg) = (GtkObject *) etable->model; + break; + default: break; } @@ -2279,6 +2286,8 @@ e_table_class_init (ETableClass *class) gtk_object_add_arg_type ("ETable::length_threshold", GTK_TYPE_INT, GTK_ARG_WRITABLE, ARG_LENGTH_THRESHOLD); + gtk_object_add_arg_type ("ETable::model", E_TABLE_MODEL_TYPE, + GTK_ARG_READABLE, ARG_MODEL); } E_MAKE_TYPE(e_table, "ETable", ETable, e_table_class_init, e_table_init, PARENT_TYPE); -- cgit