GNOME Bugzilla – Bug 153585
g_object_get does not work for "dash"
Last modified: 2006-11-17 13:15:17 UTC
g_object_set expects a pointer to ArtVpathDash. But g_object_get returns a pointer to double values. Here is the patch to fix it: *** gnome-canvas-shape.c 2004-09-23 21:13:34.879523048 +0200 --- gnome-canvas-shape-orig.c 2004-09-23 21:00:37.291734360 +0200 *************** *** 625,631 **** break; case PROP_DASH: ! g_value_set_pointer (value, &priv->dash); break; default: --- 625,631 ---- break; case PROP_DASH: ! g_value_set_pointer (value, priv->dash.dash); break; default:
Is this patch reversed? I guess you should use diff -up original-file.c patched-file.c
I basically agree here. But doesn't this break ABI with existing applications?
2006-11-17 Sven Herzberg <herzi@gnome-de.org> * src/gnome-canvas-shape.c: changed the get_property() implementation for "dash" to return something useful (ArtVpathDash*) and also to be consistent with set_property() ('though tis code really sucks as we should really use GParamSpecBoxed instead). Closes bug #153585 (Patch by Peter G. Baum)