Use gtk_true instead of rolling a new one. Patch from Xan Lopez.

2007-08-08  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkwindow.c (gdk_window_invalidate_region): Use gtk_true
        instead of rolling a new one.  Patch from Xan Lopez.


svn path=/trunk/; revision=18595
This commit is contained in:
Behdad Esfahbod 2007-08-08 22:25:58 +00:00 committed by Behdad Esfahbod
parent 9e9767401d
commit 398a61e43d
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2007-08-08 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkwindow.c (gdk_window_invalidate_region): Use gtk_true
instead of rolling a new one. Patch from Xan Lopez.
2007-08-08 Mikael Hallendal <micke@imendio.com> 2007-08-08 Mikael Hallendal <micke@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_class_init): * gtk/gtkcombobox.c (gtk_combo_box_class_init):

View File

@ -2674,13 +2674,6 @@ gdk_window_invalidate_maybe_recurse (GdkWindow *window,
gdk_region_destroy (visible_region); gdk_region_destroy (visible_region);
} }
static gboolean
true_predicate (GdkWindow *window,
gpointer user_data)
{
return TRUE;
}
/** /**
* gdk_window_invalidate_region: * gdk_window_invalidate_region:
* @window: a #GdkWindow * @window: a #GdkWindow
@ -2712,7 +2705,7 @@ gdk_window_invalidate_region (GdkWindow *window,
{ {
gdk_window_invalidate_maybe_recurse (window, region, gdk_window_invalidate_maybe_recurse (window, region,
invalidate_children ? invalidate_children ?
true_predicate : (gboolean (*) (GdkWindow *, gpointer))NULL, gtk_true : (gboolean (*) (GdkWindow *, gpointer))NULL,
NULL); NULL);
} }