diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-13 06:34:54 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-13 06:34:54 +0000 |
commit | 50cbd51d269b36bf9e273a7743772e8cae23387a (patch) | |
tree | 4a29c12256c624ba551859cb04c6e7ea56e4fc18 /gtk/gtklabel.h | |
parent | 5191e341b431e3a02dae9312c2eb8297fd860f57 (diff) | |
download | gtk+-50cbd51d269b36bf9e273a7743772e8cae23387a.tar.gz |
Add a max-width-chars property, which can be used to specify the width of
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.[hc]: Add a max-width-chars property, which can
be used to specify the width of the label in characters, while
still allowing it to fall short of this length if the text
is shorter. (#155944, Christian Persch)
* gtk/gtk.symbols: Add new symbols.
Diffstat (limited to 'gtk/gtklabel.h')
-rw-r--r-- | gtk/gtklabel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h index c6e9407f84..b02f99bead 100644 --- a/gtk/gtklabel.h +++ b/gtk/gtklabel.h @@ -135,6 +135,9 @@ PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label); void gtk_label_set_width_chars (GtkLabel *label, gint n_chars); gint gtk_label_get_width_chars (GtkLabel *label); +void gtk_label_set_max_width_chars (GtkLabel *label, + gint n_chars); +gint gtk_label_get_max_width_chars (GtkLabel *label); void gtk_label_set_pattern (GtkLabel *label, const gchar *pattern); void gtk_label_set_line_wrap (GtkLabel *label, |