diff --git a/ChangeLog b/ChangeLog index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5bec5fbaf4..ef463a543f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-10-22 Havoc Pennington + + * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix + #62366 + Mon Oct 22 11:47:47 2001 Owen Taylor * gtk/gtklabel.c: Add cursor-position, selection-bound diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index a62681ef6a..4462a45845 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6227,8 +6227,11 @@ set_window_height (GtkTextView *text_view, * * Sets the width of %GTK_TEXT_WINDOW_LEFT or %GTK_TEXT_WINDOW_RIGHT, * or the height of %GTK_TEXT_WINDOW_TOP or %GTK_TEXT_WINDOW_BOTTOM. - * Automatically destroys the corresponding window if the size is set to 0, - * and creates the window if the size is set to non-zero. + * Automatically destroys the corresponding window if the size is set + * to 0, and creates the window if the size is set to non-zero. This + * function can only be used for the "border windows," it doesn't work + * with #GTK_TEXT_WINDOW_WIDGET, #GTK_TEXT_WINDOW_TEXT, or + * #GTK_TEXT_WINDOW_PRIVATE. **/ void gtk_text_view_set_border_window_size (GtkTextView *text_view, @@ -6238,8 +6241,6 @@ gtk_text_view_set_border_window_size (GtkTextView *text_view, { g_return_if_fail (GTK_IS_TEXT_VIEW (text_view)); g_return_if_fail (size >= 0); - g_return_if_fail (type != GTK_TEXT_WINDOW_WIDGET); - g_return_if_fail (type != GTK_TEXT_WINDOW_TEXT); switch (type) { @@ -6264,7 +6265,7 @@ gtk_text_view_set_border_window_size (GtkTextView *text_view, break; default: - g_warning ("Can only set size of left/right/top/bottom border windows with gtk_text_view_set_border_window_size in %s\n", G_STRLOC); + g_warning ("Can only set size of left/right/top/bottom border windows with gtk_text_view_set_border_window_size()"); break; } }