Add api to ellipsize labels to multiple lines

When setting the lines property, the label will be ellipsized
to that many lines, with the ellipsis only appearing in the
last line. This is different from how ellipsization of multi-line
labels normally works in GTK+.
This commit is contained in:
Matthias Clasen
2013-08-22 20:29:22 -04:00
parent 4415d087c6
commit eab0ff8e4e
3 changed files with 87 additions and 1 deletions

View File

@ -155,6 +155,11 @@ void gtk_label_set_max_width_chars (GtkLabel *label,
gint n_chars);
GDK_AVAILABLE_IN_ALL
gint gtk_label_get_max_width_chars (GtkLabel *label);
GDK_AVAILABLE_IN_3_10
void gtk_label_set_lines (GtkLabel *label,
gint lines);
GDK_AVAILABLE_IN_3_10
gint gtk_label_get_lines (GtkLabel *label);
GDK_AVAILABLE_IN_ALL
void gtk_label_set_pattern (GtkLabel *label,
const gchar *pattern);