From 46bbf4ebd8ea326f5784d58a4aa66b39ca264240 Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Tue, 14 Aug 2007 22:44:11 +0000 Subject: [PATCH] gtk/gtkwidget.c gtk/gtkscrolledwindow.c Correct documentation that refers 2007-08-14 Cody Russell * gtk/gtkwidget.c * gtk/gtkscrolledwindow.c * gtk/gtklabel.c: Correct documentation that refers to the deprecated gtk_widget_set_usize() API. Refer instead to gtk_widget_set_size_request(). (#459340, Guillaume Cottenceau) svn path=/trunk/; revision=18613 --- ChangeLog | 8 ++++++++ gtk/gtklabel.c | 2 +- gtk/gtkscrolledwindow.c | 4 ++-- gtk/gtkwidget.c | 5 +++-- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d0ca452fc4..6f1aa21845 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-08-14 Cody Russell + + * gtk/gtkwidget.c + * gtk/gtkscrolledwindow.c + * gtk/gtklabel.c: Correct documentation that refers to the + deprecated gtk_widget_set_usize() API. Refer instead to + gtk_widget_set_size_request(). (#459340, Guillaume Cottenceau) + 2007-08-14 Kristian Rietveld * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): make diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 26cd994349..09fcb85a75 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -2152,7 +2152,7 @@ gtk_label_size_request (GtkWidget *widget, * If word wrapping is on, then the height requisition can depend * on: * - * - Any width set on the widget via gtk_widget_set_usize(). + * - Any width set on the widget via gtk_widget_set_size_request(). * - The padding of the widget (xpad, set by gtk_misc_set_padding) * * Instead of trying to detect changes to these quantities, if we diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 1dd34e16ca..74afb1b1a0 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -43,9 +43,9 @@ * to be best suited to display its contents, including children. * the width and/or height reported from a widget upon size requisition * may be overidden by the user by specifying a width and/or height - * other than 0 through gtk_widget_set_usize(). + * other than 0 through gtk_widget_set_size_request(). * - * a scrolled window needs (for imlementing all three policy types) to + * a scrolled window needs (for implementing all three policy types) to * request its width and height based on two different rationales. * 1) the user wants the scrolled window to just fit into the space * that it gets allocated for a specifc dimension. diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 56829568c6..d4d1d2b4e9 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3639,8 +3639,9 @@ gtk_widget_size_request (GtkWidget *widget, * * This function is only for use in widget implementations. Obtains * @widget->requisition, unless someone has forced a particular - * geometry on the widget (e.g. with gtk_widget_set_usize()), in which - * case it returns that geometry instead of the widget's requisition. + * geometry on the widget (e.g. with gtk_widget_set_size_request()), + * in which case it returns that geometry instead of the widget's + * requisition. * * This function differs from gtk_widget_size_request() in that * it retrieves the last size request value from @widget->requisition,