diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-03-05 19:55:30 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-03-05 19:55:30 +0000 |
commit | a7f524bbd6d9afe99ec9f755ee4b0826411f706c (patch) | |
tree | 599235df59040e5c1fb72c12635a2d46c4638f0b /gtk/gtkcellrenderertext.c | |
parent | 3b2ffda1f5e0498aad3cb9cd7938159631fac61f (diff) | |
download | gdk-pixbuf-a7f524bbd6d9afe99ec9f755ee4b0826411f706c.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r-- | gtk/gtkcellrenderertext.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index fc998bd3a..de86b4b0d 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -666,6 +666,7 @@ gtk_cell_renderer_text_set_property (GObject *object, if (celltext->text) g_free (celltext->text); celltext->text = g_strdup (g_value_get_string (value)); + g_object_notify(G_OBJECT(object), "text"); break; case PROP_MARKUP: @@ -732,10 +733,12 @@ gtk_cell_renderer_text_set_property (GObject *object, break; case PROP_BACKGROUND_GDK: + /* This notifies the GObject itself. */ set_bg_color (celltext, g_value_get_boxed (value)); break; case PROP_FOREGROUND_GDK: + /* This notifies the GObject itself. */ set_fg_color (celltext, g_value_get_boxed (value)); break; @@ -749,7 +752,13 @@ gtk_cell_renderer_text_set_property (GObject *object, if (name) font_desc = pango_font_description_from_string (name); + /* This function notifies the relevant GObjects itself. + * I'm not sure how useful the notify() on 'font' + * actually is here, but it's here for consistency. + */ set_font_description (celltext, font_desc); + g_object_notify(G_OBJECT(object), "font_desc"); + g_object_notify(G_OBJECT(object), "font"); if (font_desc) pango_font_description_free (font_desc); @@ -851,50 +860,62 @@ gtk_cell_renderer_text_set_property (GObject *object, case PROP_BACKGROUND_SET: celltext->background_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "background_set"); break; case PROP_FOREGROUND_SET: celltext->foreground_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "foreground_set"); break; case PROP_FAMILY_SET: celltext->family_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "family_set"); break; case PROP_STYLE_SET: celltext->style_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "style_set"); break; case PROP_VARIANT_SET: celltext->variant_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "variant_set"); break; case PROP_WEIGHT_SET: celltext->weight_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "weight_set"); break; case PROP_STRETCH_SET: celltext->stretch_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "stretch_set"); break; case PROP_SIZE_SET: celltext->size_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "size_set"); break; case PROP_EDITABLE_SET: celltext->editable_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "editable_set"); break; case PROP_STRIKETHROUGH_SET: celltext->strikethrough_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "strikethrough_set"); break; case PROP_UNDERLINE_SET: celltext->underline_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "underline_set"); break; - case PROP_RISE_SET: + case PROP_RISE_SET: celltext->rise_set = g_value_get_boolean (value); + g_object_notify(G_OBJECT(object), "rise_set"); break; default: |