Fixed cut and paste bug when comparing text property bg colors. [ Matt

Sun Jan 10 14:45:37 1999  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtktext.c (text_properties_equal): Fixed
	cut and paste bug when comparing text property
	bg colors.
	[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
This commit is contained in:
Owen Taylor 1999-01-10 19:49:24 +00:00 committed by Owen Taylor
parent bcbe6f4885
commit 05e714d6d1
8 changed files with 51 additions and 2 deletions

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -1,3 +1,10 @@
Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (text_properties_equal): Fixed
cut and paste bug when comparing text property
bg colors.
[ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
1999-01-10 Tim Janik <timj@gtk.org> 1999-01-10 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try

View File

@ -2975,11 +2975,11 @@ text_properties_equal (TextProperty* prop, GdkFont* font, GdkColor *fore, GdkCol
if (prop->flags & PROPERTY_BACKGROUND) if (prop->flags & PROPERTY_BACKGROUND)
{ {
if (!back || !gdk_color_equal (&prop->fore_color, fore)) if (!back || !gdk_color_equal (&prop->back_color, back))
return FALSE; return FALSE;
} }
else else
if (fore != NULL) if (back != NULL)
return FALSE; return FALSE;
return TRUE; return TRUE;