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:
Owen Taylor 1998-12-16 21:06:49 +00:00 committed by Owen Taylor
parent c1726375b1
commit b4ba8e3b5d
8 changed files with 38 additions and 4 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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