summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderertext.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2006-09-24 17:12:00 +0000
committerKristian Rietveld <kristian@src.gnome.org>2006-09-24 17:12:00 +0000
commit7dbaf7ef5caaeae6306037e086088d7de4e0f026 (patch)
treed237b764b4887a4938a22f18acf4b8b3d6f4b4f1 /gtk/gtkcellrenderertext.c
parent2c72aad6879d8d52e0d9751a17c3c052e5858554 (diff)
downloadgtk+-7dbaf7ef5caaeae6306037e086088d7de4e0f026.tar.gz
actually add align-set property to the API (left-over patch from #157439).
2006-09-24 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init), (gtk_cell_renderer_text_[sg]et_property): actually add align-set property to the API (left-over patch from #157439).
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r--gtk/gtkcellrenderertext.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 4bbcc52d23..4eb3ad7f02 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -115,7 +115,8 @@ enum {
PROP_UNDERLINE_SET,
PROP_RISE_SET,
PROP_LANGUAGE_SET,
- PROP_ELLIPSIZE_SET
+ PROP_ELLIPSIZE_SET,
+ PROP_ALIGN_SET
};
static guint text_cell_renderer_signals [LAST_SIGNAL];
@@ -551,6 +552,10 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
P_("Ellipsize set"),
P_("Whether this tag affects the ellipsize mode"));
+ ADD_SET_PROP ("align-set", PROP_ALIGN_SET,
+ P_("Align set"),
+ P_("Whether this tag affects the alignment mode"));
+
text_cell_renderer_signals [EDITED] =
g_signal_new (I_("edited"),
G_OBJECT_CLASS_TYPE (object_class),
@@ -782,6 +787,10 @@ gtk_cell_renderer_text_get_property (GObject *object,
case PROP_ELLIPSIZE_SET:
g_value_set_boolean (value, priv->ellipsize_set);
break;
+
+ case PROP_ALIGN_SET:
+ g_value_set_boolean (value, priv->align_set);
+ break;
case PROP_WIDTH_CHARS:
g_value_set_int (value, priv->width_chars);
@@ -1237,6 +1246,7 @@ gtk_cell_renderer_text_set_property (GObject *object,
case PROP_ALIGN:
priv->align = g_value_get_enum (value);
priv->align_set = TRUE;
+ g_object_notify (object, "align-set");
break;
case PROP_BACKGROUND_SET:
@@ -1295,6 +1305,10 @@ gtk_cell_renderer_text_set_property (GObject *object,
case PROP_ELLIPSIZE_SET:
priv->ellipsize_set = g_value_get_boolean (value);
break;
+
+ case PROP_ALIGN_SET:
+ priv->align_set = g_value_get_boolean (value);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);