diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-27 19:35:54 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-28 16:29:18 +0100 |
commit | c2403fdcf7885d7da1efa2c0dfb3e294f760ca9c (patch) | |
tree | 0bae3804e699d18ce14b37004302c31cfd01c8ea /liblogdiag/ld-diagram-symbol.c | |
parent | b7fa5372fd25423fd19fb42bd29d8ff36cb06bf0 (diff) | |
download | logdiag-c2403fdcf7885d7da1efa2c0dfb3e294f760ca9c.tar.gz logdiag-c2403fdcf7885d7da1efa2c0dfb3e294f760ca9c.tar.xz logdiag-c2403fdcf7885d7da1efa2c0dfb3e294f760ca9c.zip |
Extend LdDiagramObject.
* Add generic methods for data storage, making it able
to store data in a hierarchy.
* Reimplement ld_diagram_{get,set}_data_for_param on top
of the generic methods.
* Add a "data-changed" signal.
Diffstat (limited to 'liblogdiag/ld-diagram-symbol.c')
-rw-r--r-- | liblogdiag/ld-diagram-symbol.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram-symbol.c b/liblogdiag/ld-diagram-symbol.c index 070befd..9007938 100644 --- a/liblogdiag/ld-diagram-symbol.c +++ b/liblogdiag/ld-diagram-symbol.c @@ -8,6 +8,8 @@ * */ +#include <string.h> + #include "liblogdiag.h" #include "config.h" @@ -65,12 +67,16 @@ ld_diagram_symbol_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { LdDiagramObject *self; + GValue tmp_value; self = LD_DIAGRAM_OBJECT (object); switch (property_id) { case PROP_CLASS: - ld_diagram_object_get_data_for_param (self, value, pspec); + memset (&tmp_value, 0, sizeof (GValue)); + ld_diagram_object_get_data_for_param (self, &tmp_value, pspec); + g_value_copy (&tmp_value, value); + g_value_unset (&tmp_value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); |