fixed bug #51097 about setting gtk_text_view_set_border_window_size() if

Sun Mar 04  07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>

	* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
	if the widget is already realized.
This commit is contained in:
CET Mikael Hermansson 2001-03-04 05:36:34 +00:00 committed by Mikael Hermansson
parent c374cd299b
commit e896731f3e
8 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -1,3 +1,8 @@
Sun Mar 04 07:30:03 2001 CET Mikael Hermansson<mikeh@bahnhof.se>
* gtk/gtktextview.c: fixed bug #51097 about setting gtk_text_view_set_border_window_size()
if the widget is already realized.
Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes

View File

@ -5553,6 +5553,10 @@ set_window_width (GtkTextView *text_view,
*winp = text_window_new (type,
GTK_WIDGET (text_view),
width, 0);
/* if the widget is already realized we need to realize the child manually */
if (GTK_WIDGET_REALIZED (text_view))
text_window_realize (*winp,
GTK_WIDGET(text_view)->window);
}
else
{
@ -5587,6 +5591,11 @@ set_window_height (GtkTextView *text_view,
*winp = text_window_new (type,
GTK_WIDGET (text_view),
0, height);
/* if the widget is already realized we need to realize the child manually */
if (GTK_WIDGET_REALIZED (text_view))
text_window_realize (*winp,
GTK_WIDGET(text_view)->window);
}
else
{