forked from AuroraMiddleware/gtk
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:
parent
9e9767401d
commit
398a61e43d
@ -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>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_class_init):
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user