Do nothing on empty string, quietly.
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtklabel.c (gtk_label_expose): Do nothing on empty string, quietly.
This commit is contained in:
parent
c1726375b1
commit
b4ba8e3b5d
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Do nothing
|
||||
on empty string, quietly.
|
||||
|
||||
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||
|
@ -878,14 +878,13 @@ gtk_label_expose (GtkWidget *widget,
|
||||
g_return_val_if_fail (GTK_IS_LABEL (widget), FALSE);
|
||||
g_return_val_if_fail (event != NULL, FALSE);
|
||||
|
||||
|
||||
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget))
|
||||
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget) &&
|
||||
label->label && (*label->label != '\0'))
|
||||
{
|
||||
label = GTK_LABEL (widget);
|
||||
misc = GTK_MISC (widget);
|
||||
|
||||
g_return_val_if_fail (label->words != 0 || label->label == 0, FALSE);
|
||||
|
||||
g_return_val_if_fail ((label->words != NULL), FALSE);
|
||||
|
||||
/*
|
||||
* GC Clipping
|
||||
|
Loading…
Reference in New Issue
Block a user