From 398a61e43d45d2432d45f8dcea622b1eb58a727a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 8 Aug 2007 22:25:58 +0000 Subject: [PATCH] Use gtk_true instead of rolling a new one. Patch from Xan Lopez. 2007-08-08 Behdad Esfahbod * 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 --- ChangeLog | 5 +++++ gdk/gdkwindow.c | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 822bce716c..d9ee9bc407 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-08 Behdad Esfahbod + + * 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 * gtk/gtkcombobox.c (gtk_combo_box_class_init): diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 2028693cb0..15be598600 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -2674,13 +2674,6 @@ gdk_window_invalidate_maybe_recurse (GdkWindow *window, gdk_region_destroy (visible_region); } -static gboolean -true_predicate (GdkWindow *window, - gpointer user_data) -{ - return TRUE; -} - /** * gdk_window_invalidate_region: * @window: a #GdkWindow @@ -2712,7 +2705,7 @@ gdk_window_invalidate_region (GdkWindow *window, { gdk_window_invalidate_maybe_recurse (window, region, invalidate_children ? - true_predicate : (gboolean (*) (GdkWindow *, gpointer))NULL, + gtk_true : (gboolean (*) (GdkWindow *, gpointer))NULL, NULL); }