Added a "state" argument to allow you to get the state out of the config

2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c (config_get_arg): Added a "state" argument to
	allow you to get the state out of the config object.

svn path=/trunk/; revision=10875
This commit is contained in:
Christopher James Lahey
2001-07-07 02:53:21 +00:00
committed by Chris Lahey
parent 85bb331cb7
commit 7cc506979e

View File

@ -3,7 +3,7 @@
* E-table-config.c: The ETable config dialog.
*
* Authors:
* Chris Lahey (clahey@ximian.com)
* Chris Lahey <clahey@ximian.com>
* Miguel de Icaza (miguel@ximian.com)
*
* FIXME:
@ -40,6 +40,11 @@ enum {
LAST_SIGNAL
};
enum {
ARG_0,
ARG_STATE,
};
static guint e_table_config_signals [LAST_SIGNAL] = { 0, };
static void
@ -57,6 +62,21 @@ config_destroy (GtkObject *object)
GTK_OBJECT_CLASS (config_parent_class)->destroy (object);
}
static void
config_get_arg (GtkObject *o, GtkArg *arg, guint arg_id)
{
ETableConfig *config = E_TABLE_CONFIG (o);
switch (arg_id){
case ARG_STATE:
GTK_VALUE_OBJECT (*arg) = (GtkObject *) config->state;
break;
default:
break;
}
}
static void
e_table_config_changed (ETableConfig *config, ETableState *state)
{
@ -78,6 +98,7 @@ config_class_init (GtkObjectClass *object_class)
klass->changed = NULL;
object_class->get_arg = config_get_arg;
object_class->destroy = config_destroy;
e_table_config_signals [CHANGED] =
@ -89,6 +110,9 @@ config_class_init (GtkObjectClass *object_class)
GTK_TYPE_NONE, 0);
gtk_object_class_add_signals (object_class, e_table_config_signals, LAST_SIGNAL);
gtk_object_add_arg_type ("ETableConfig::state", E_TABLE_STATE_TYPE,
GTK_ARG_READABLE, ARG_STATE);
}
static ETableColumnSpecification *