aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-07 10:53:21 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-07 10:53:21 +0800
commit7cc506979eb65b179263f868dec88cba36528fa7 (patch)
tree8f9642c3581e8bcd27932ede1ca549651f99261f /widgets/table/e-table-config.c
parent85bb331cb766ea520b4ca36ec71701cf2da0b1d8 (diff)
downloadgsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.tar
gsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.tar.gz
gsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.tar.bz2
gsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.tar.lz
gsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.tar.xz
gsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.tar.zst
gsoc2013-evolution-7cc506979eb65b179263f868dec88cba36528fa7.zip
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
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 58f11a1e3a..c33290b227 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -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
@@ -58,6 +63,21 @@ config_destroy (GtkObject *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)
{
g_return_if_fail (config != NULL);
@@ -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 *