summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2006-05-02 12:17:29 +0000
committerMichael Natterer <mitch@src.gnome.org>2006-05-02 12:17:29 +0000
commit5d6f77b4ed3cd6bf2ead8a5b0430bc1fc2f8c186 (patch)
treeee30d6ff97f84696e64607347dd05aa0c44dcea7
parentf0d64f0e012e5fbe13fb60d6d8b18c2bb4b64890 (diff)
downloadgdk-pixbuf-5d6f77b4ed3cd6bf2ead8a5b0430bc1fc2f8c186.tar.gz
added note about the inablity to do height-for-width text layout and
2006-05-02 Michael Natterer <mitch@imendio.com> * gtk/gtklabel.c (gtk_label_set_line_wrap): added note about the inablity to do height-for-width text layout and suggest to use gtk_widget_set_size_request() for getting a label that wraps at some specific position.
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-2-107
-rw-r--r--gtk/gtklabel.c6
3 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7594c1abb..e230ff920 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-02 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtklabel.c (gtk_label_set_line_wrap): added note about the
+ inablity to do height-for-width text layout and suggest to use
+ gtk_widget_set_size_request() for getting a label that wraps at
+ some specific position.
+
2006-05-02 Kristian Rietveld <kris@imendio.com>
* ChangeLog.gtk-async-file-chooser: added ChangeLog entries from
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 7594c1abb..e230ff920 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,10 @@
+2006-05-02 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtklabel.c (gtk_label_set_line_wrap): added note about the
+ inablity to do height-for-width text layout and suggest to use
+ gtk_widget_set_size_request() for getting a label that wraps at
+ some specific position.
+
2006-05-02 Kristian Rietveld <kris@imendio.com>
* ChangeLog.gtk-async-file-chooser: added ChangeLog entries from
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 28ea816c0..de02fee51 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -1683,6 +1683,12 @@ gtk_label_get_max_width_chars (GtkLabel *label)
* Toggles line wrapping within the #GtkLabel widget. %TRUE makes it break
* lines if text exceeds the widget's size. %FALSE lets the text get cut off
* by the edge of the widget if it exceeds the widget size.
+ *
+ * Note that setting line wrapping to %TRUE does not make the label
+ * wrap at its parent container's width, because GTK+ widgets
+ * conceptually can't make their requisition depend on the parent
+ * container's size. For a label that wraps at a specific position,
+ * set the label's width using gtk_widget_set_size_request().
**/
void
gtk_label_set_line_wrap (GtkLabel *label,