From 24a325c67a12ad928180e96aad8483837e26125f Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 24 Jun 2001 16:08:15 +0000 Subject: [PATCH] Removed - didn't work and not particularly useful anyways if it did. Sun Jun 24 12:06:47 2001 Owen Taylor * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): Removed - didn't work and not particularly useful anyways if it did. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktextview.c | 34 ---------------------------------- gtk/gtktextview.h | 3 --- 9 files changed, 42 insertions(+), 37 deletions(-) diff --git a/ChangeLog b/ChangeLog index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d822f272db..99bfd4ac8e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sun Jun 24 12:06:47 2001 Owen Taylor + + * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): + Removed - didn't work and not particularly useful anyways + if it did. + Sun Jun 24 11:29:35 2001 Owen Taylor * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 2d7a7d1e9f..0521c0e5e5 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6088,40 +6088,6 @@ gtk_text_view_get_border_window_size (GtkTextView *text_view, return 0; } -/** - * gtk_text_view_set_text_window_size: - * @text_view: a #GtkTextView - * @width: a width in pixels - * @height: a height in pixels - * - * Sets the size request for the main text window (%GTK_TEXT_WINDOW_TEXT). - * If the widget gets more space than it requested, the main text window - * will be larger than this. - * - **/ -void -gtk_text_view_set_text_window_size (GtkTextView *text_view, - gint width, - gint height) -{ - GtkTextWindow *win; - - g_return_if_fail (GTK_IS_TEXT_VIEW (text_view)); - g_return_if_fail (width > 0); - g_return_if_fail (height > 0); - - win = text_view->text_window; - - if (win->requisition.width == width && - win->requisition.height == height) - return; - - win->requisition.width = width; - win->requisition.height = height; - - gtk_widget_queue_resize (GTK_WIDGET (text_view)); -} - /* * Child widgets */ diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index 197f6db9a7..bcb89b24f9 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -250,9 +250,6 @@ void gtk_text_view_set_border_window_size (GtkTextView *text_view, gint size); gint gtk_text_view_get_border_window_size (GtkTextView *text_view, GtkTextWindowType type); -void gtk_text_view_set_text_window_size (GtkTextView *text_view, - gint width, - gint height); gboolean gtk_text_view_forward_display_line (GtkTextView *text_view, GtkTextIter *iter);