summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-07-26 17:38:56 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-26 17:38:56 +0000
commit502c09e65c4ea33e566a87ba490947b77bc61f4e (patch)
tree75a8bd8c7c2b573186d83e5f6ca874f17ac76fda /gtk/gtklabel.c
parent9ea7c950f3367c52560057283e3ae7c07dc42ee0 (diff)
downloadgtk+-502c09e65c4ea33e566a87ba490947b77bc61f4e.tar.gz
Expand the documentation for GtkLabel::ellipsize.
2004-07-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtklabel.c (gtk_label_class_init): Expand the documentation for GtkLabel::ellipsize.
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index f76821cf1e..ae8ef1e4aa 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -385,6 +385,21 @@ gtk_label_class_init (GtkLabelClass *class)
0,
G_PARAM_READABLE));
+ /**
+ * GtkLabel:ellipsize:
+ *
+ * The preferred place to ellipsize the string, if the label does not have
+ * enough room to display the entire string, specified as a #PangoEllisizeMode.
+ *
+ * Note that setting this property to a value other than %PANGO_ELLIPSIZE_NONE
+ * has the side-effect that the label requests only enough space to display the
+ * ellipsis "...". Ellipsizing labels must be packed in a container which
+ * ensures that the label gets a reasonable size allocated. In particular,
+ * this means that ellipsizing labels don't work well in notebook tabs, unless
+ * the tab's ::tab-expand property is set to %TRUE.
+ *
+ * Since: 2.6
+ */
g_object_class_install_property (gobject_class,
PROP_ELLIPSIZE,
g_param_spec_enum ("ellipsize",