summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@gtk.org>1998-05-04 02:10:36 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-05-04 02:10:36 +0000
commitd142827b34d15ae3f85c8b7d7d1fa5ec55171fe7 (patch)
tree81cf844ee483274abad8c65f535312467bbed226 /gtk/gtklabel.c
parent4851efe29604e1d950dc9711d9d7ced69771f2e9 (diff)
downloadgtk+-d142827b34d15ae3f85c8b7d7d1fa5ec55171fe7.tar.gz
Merges from the gtk-1-0 branch
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org> * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about "glibconfig.h" and another about writing another IRC client. Sat May 2 00:14:05 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the parameters to log are doubles. Digital Unix apparently is missing the argument in its prototype. Sun May 3 19:04:46 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtklabel.c (gtk_label_state_changed): Don't force a clear until the widget is actually on screen. Hopefully nothing else though CVS think there are a whole bunch more changed files.
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 412f83a456..7436394481 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -396,13 +396,15 @@ static void
gtk_label_state_changed (GtkWidget *widget,
guint previous_state)
{
- GTK_LABEL (widget)->needs_clear = 1;
+ if (GTK_WIDGET_DRAWABLE (widget))
+ GTK_LABEL (widget)->needs_clear = 1;
}
static void
gtk_label_style_set (GtkWidget *widget,
GtkStyle *previous_style)
{
- GTK_LABEL (widget)->needs_clear = 1;
+ if (GTK_WIDGET_DRAWABLE (widget))
+ GTK_LABEL (widget)->needs_clear = 1;
}