mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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.
This commit is contained in:
parent
15eecb1645
commit
78bb09c5a1
@ -534,6 +534,7 @@ try_main_quit (void)
|
||||
static int
|
||||
test_increment_intp (int *intp)
|
||||
{
|
||||
if (intp != NULL)
|
||||
*intp += 1;
|
||||
return 1; /* TRUE in case we're connected to event signals */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user