Commit 977b13d3 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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().
parent bfd68b43
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
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> 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a
......
...@@ -527,7 +527,7 @@ gtk_text_set_word_wrap (GtkText *text, ...@@ -527,7 +527,7 @@ gtk_text_set_word_wrap (GtkText *text,
text->word_wrap = (word_wrap != FALSE); text->word_wrap = (word_wrap != FALSE);
if (GTK_WIDGET_DRAWABLE (text)) if (GTK_WIDGET_REALIZED (text))
{ {
recompute_geometry (text); recompute_geometry (text);
gtk_widget_queue_draw (GTK_WIDGET (text)); gtk_widget_queue_draw (GTK_WIDGET (text));
...@@ -666,7 +666,7 @@ gtk_text_thaw (GtkText *text) ...@@ -666,7 +666,7 @@ gtk_text_thaw (GtkText *text)
text->freeze = FALSE; text->freeze = FALSE;
if (GTK_WIDGET_DRAWABLE (text)) if (GTK_WIDGET_REALIZED (text))
{ {
recompute_geometry (text); recompute_geometry (text);
gtk_widget_queue_draw (GTK_WIDGET (text)); gtk_widget_queue_draw (GTK_WIDGET (text));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment