aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-04-08 12:34:34 +0800
committerChris Toshok <toshok@src.gnome.org>2003-04-08 12:34:34 +0800
commitfc5fc4dcf006ff720c73620c233a3655d479c05a (patch)
tree3f8bb118267b3ba1c374edc1f9325d31db894d48 /widgets/misc
parent907f029cc1d504c311df16c695b7a6141b8436da (diff)
downloadgsoc2013-evolution-fc5fc4dcf006ff720c73620c233a3655d479c05a.tar.gz
gsoc2013-evolution-fc5fc4dcf006ff720c73620c233a3655d479c05a.tar.zst
gsoc2013-evolution-fc5fc4dcf006ff720c73620c233a3655d479c05a.zip
fill_color_gdk is a boxed GdkColor, not a pointer. (ecb_set_property):
2003-04-07 Chris Toshok <toshok@ximian.com> * gal/widgets/e-canvas-background.c (ecb_class_init): fill_color_gdk is a boxed GdkColor, not a pointer. (ecb_set_property): same. (ecb_get_property): same. svn path=/trunk/; revision=20741
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-canvas-background.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/widgets/misc/e-canvas-background.c b/widgets/misc/e-canvas-background.c
index d2d68d180f..0e57feff4e 100644
--- a/widgets/misc/e-canvas-background.c
+++ b/widgets/misc/e-canvas-background.c
@@ -215,7 +215,7 @@ ecb_set_property (GObject *object,
break;
case PROP_FILL_COLOR_GDK:
- pcolor = g_value_get_pointer (value);
+ pcolor = g_value_get_boxed (value);
if (pcolor) {
color = *pcolor;
}
@@ -282,7 +282,7 @@ ecb_get_property (GObject *object,
switch (prop_id){
case PROP_FILL_COLOR_GDK:
- g_value_set_pointer (value, gdk_color_copy (&ecb->priv->color));
+ g_value_set_boxed (value, gdk_color_copy (&ecb->priv->color));
break;
case PROP_FILL_COLOR_RGBA:
g_value_set_uint (value, ecb->priv->rgba);
@@ -439,10 +439,11 @@ ecb_class_init (GObjectClass *object_class)
G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_FILL_COLOR_GDK,
- g_param_spec_pointer ("fill_color_gdk",
- _( "GDK fill color" ),
- _( "GDK fill color" ),
- G_PARAM_READWRITE));
+ g_param_spec_boxed ("fill_color_gdk",
+ _( "GDK fill color" ),
+ _( "GDK fill color" ),
+ GDK_TYPE_COLOR,
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_FILL_COLOR_RGBA,
g_param_spec_uint ("fill_color_rgba",