summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-11-09 05:04:41 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-11-09 05:04:41 +0000
commitb87307b91870918af9a1daa1ddd84316ec5e82b6 (patch)
treee46ca170a564979069eceb5e895569b6d5391d30 /gtk/gtklabel.h
parentc4183ed568e23436901eab75961cadaf1eba2b3d (diff)
downloadgtk+-b87307b91870918af9a1daa1ddd84316ec5e82b6.tar.gz
Avoid resizing GtkStatusbar if the text of the label changes (#90955, He
2004-11-09 Matthias Clasen <mclasen@redhat.com> Avoid resizing GtkStatusbar if the text of the label changes (#90955, He Qiangqiang, fix proposed by Owen Taylor, patch by Christian Persch) * gtk/gtklabel.[hc]: Add a boolean single-line-mode property which causes the label height not to depend on the actual text, but only on the font. * gtk/gtkstatusbar.c (gtk_statusbar_init): Turn on single-line-mode for the label.
Diffstat (limited to 'gtk/gtklabel.h')
-rw-r--r--gtk/gtklabel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h
index 9d71cd0b0a..5da9c47ef5 100644
--- a/gtk/gtklabel.h
+++ b/gtk/gtklabel.h
@@ -155,6 +155,9 @@ void gtk_label_get_layout_offsets (GtkLabel *label,
gint *x,
gint *y);
+void gtk_label_set_single_line_mode (GtkLabel *label,
+ gboolean single_line_mode);
+gboolean gtk_label_get_single_line_mode (GtkLabel *label);
#ifndef GTK_DISABLE_DEPRECATED