Test for need to recompute geometry with GTK_WIDGET_REALIZED(), not

Fri Apr  3 23:15:55 1998  Owen Taylor  <owt1@cornell.edu>

	* gtk/gtktext.c: Test for need to recompute geometry with
	GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
This commit is contained in:
Owen Taylor 1998-04-04 04:21:26 +00:00 committed by Owen Taylor
parent bfd68b4357
commit 977b13d37f
8 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -1,3 +1,8 @@
Fri Apr 3 23:15:55 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.c: Test for need to recompute geometry with
GTK_WIDGET_REALIZED(), not GTK_WIDGET_DRAWABLE().
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a

View File

@ -527,7 +527,7 @@ gtk_text_set_word_wrap (GtkText *text,
text->word_wrap = (word_wrap != FALSE);
if (GTK_WIDGET_DRAWABLE (text))
if (GTK_WIDGET_REALIZED (text))
{
recompute_geometry (text);
gtk_widget_queue_draw (GTK_WIDGET (text));
@ -666,7 +666,7 @@ gtk_text_thaw (GtkText *text)
text->freeze = FALSE;
if (GTK_WIDGET_DRAWABLE (text))
if (GTK_WIDGET_REALIZED (text))
{
recompute_geometry (text);
gtk_widget_queue_draw (GTK_WIDGET (text));