Apply patch from Lee Mallabone to add object properties.

Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
	add object properties.

	* gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
	to add object properties.

	* gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
	object properties.

	* gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
	add object properties.

	* gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
	object properties.
This commit is contained in:
Jonathan Blandford
2001-03-05 19:55:30 +00:00
committed by Jonathan Blandford
parent 3b2ffda1f5
commit a7f524bbd6
12 changed files with 154 additions and 1 deletions

View File

@ -232,29 +232,35 @@ gtk_cell_renderer_text_pixbuf_set_property (GObject *object,
g_object_set_property (G_OBJECT (celltextpixbuf->pixbuf),
"pixbuf",
value);
g_object_notify (G_OBJECT(object), "pixbuf");
break;
case PROP_PIXBUF_POS:
celltextpixbuf->pixbuf_pos = g_value_get_int (value);
g_object_notify (G_OBJECT(object), "pixbuf_pos");
break;
case PROP_PIXBUF_XALIGN:
g_object_set_property (G_OBJECT (celltextpixbuf->pixbuf),
"xalign",
value);
g_object_notify (G_OBJECT(object), "pixbuf_xalign");
break;
case PROP_PIXBUF_YALIGN:
g_object_set_property (G_OBJECT (celltextpixbuf->pixbuf),
"yalign",
value);
g_object_notify (G_OBJECT(object), "pixbuf_yalign");
break;
case PROP_PIXBUF_XPAD:
g_object_set_property (G_OBJECT (celltextpixbuf->pixbuf),
"xpad",
value);
g_object_notify (G_OBJECT(object), "pixbuf_xpad");
break;
case PROP_PIXBUF_YPAD:
g_object_set_property (G_OBJECT (celltextpixbuf->pixbuf),
"ypad",
value);
g_object_notify (G_OBJECT(object), "pixbuf_ypad");
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);