summaryrefslogtreecommitdiff
path: root/gobject/gparam.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2001-06-19 12:13:22 +0000
committerTim Janik <timj@src.gnome.org>2001-06-19 12:13:22 +0000
commit3b346e3581a07188435ba1623f17b8b46ade1030 (patch)
tree66aaf475ce4bd9c4b518061b3484b6892b5c1191 /gobject/gparam.h
parentefc2ec72b5061346ed325f5fa008f4e92759c750 (diff)
remove left-over usages of an anonymous GBoxed typedef.
Mon Jun 11 17:07:06 2001 Tim Janik <timj@gtk.org> * gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef. * gobjectnotifyqueue.c: moved property notify queue implementation bits into this function. * gparam.[hc]: added g_param_spec_pool_belongings(), completed g_param_spec_pool_list(). added GParameter for _setv() functions. * gobject.[hc]: use gobjectnotifyqueue.h implementation now. got rid of properties_changed signal. new functions g_object_newv(), g_object_class_list_properties(). removed "properties_changed" signal. * gtype.[hc]: added g_type_depth() to figure number of parent types + 1 for a type. * gsignal.h: add g_signal_connect() (as per owen's request) and g_signal_connect_swapped().
Diffstat (limited to 'gobject/gparam.h')
-rw-r--r--gobject/gparam.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/gobject/gparam.h b/gobject/gparam.h
index 744a3978a..7def6d278 100644
--- a/gobject/gparam.h
+++ b/gobject/gparam.h
@@ -56,6 +56,7 @@ typedef enum
/* --- typedefs & structures --- */
typedef struct _GParamSpec GParamSpec;
typedef struct _GParamSpecClass GParamSpecClass;
+typedef struct _GParameter GParameter;
typedef struct _GParamSpecPool GParamSpecPool;
struct _GParamSpec
{
@@ -66,11 +67,12 @@ struct _GParamSpec
gchar *blurb;
GParamFlags flags;
GType value_type;
+ GType owner_type; /* class using this property */
/*< private >*/
- GType owner_type;
GData *qdata;
guint ref_count;
+ guint param_id; /* sort-criteria */
};
struct _GParamSpecClass
{
@@ -89,6 +91,11 @@ struct _GParamSpecClass
const GValue *value1,
const GValue *value2);
};
+struct _GParameter /* auxillary structure for _setv() variants */
+{
+ const gchar *name;
+ GValue value;
+};
/* --- prototypes --- */
@@ -165,8 +172,11 @@ GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool,
const gchar *param_name,
GType owner_type,
gboolean walk_ancestors);
-GList* g_param_spec_pool_list (GParamSpecPool *pool,
+GList* g_param_spec_pool_belongings (GParamSpecPool *pool,
GType owner_type);
+GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool,
+ GType owner_type,
+ guint *n_pspecs_p);