[gtk+/treeview-refactor] Handle NULL intp in test_increment_intp()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Handle NULL intp in test_increment_intp()
- Date: Tue, 2 Nov 2010 03:00:29 +0000 (UTC)
commit 0feb08a4bbfb09dc514e00d4a6aae0c5cb0c34da
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Oct 31 00:06:48 2010 +0200
Handle NULL intp in test_increment_intp()
Support passing NULL for &int to gtk_test_display_button_window() so
we can use that function also when we are not interested in counting
clicks.
gtk/gtktestutils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index c2306fe..704674b 100644
--- a/gtk/gtktestutils.c
+++ b/gtk/gtktestutils.c
@@ -544,7 +544,8 @@ try_main_quit (void)
static int
test_increment_intp (int *intp)
{
- *intp += 1;
+ if (intp != NULL)
+ *intp += 1;
return 1; /* TRUE in case we're connected to event signals */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]