From 7844d3b8db94922ff17a598d6b36dd30ea0d569d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Aug 2010 22:22:03 -0400 Subject: [PATCH] Fix gail_notebook_get_selection_count() This function should return 0 for empty notebooks. Based on a patch by Mike Gorse, bug 557263. --- modules/other/gail/gailnotebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/other/gail/gailnotebook.c b/modules/other/gail/gailnotebook.c index b3edb8cf5f..228641a8ce 100644 --- a/modules/other/gail/gailnotebook.c +++ b/modules/other/gail/gailnotebook.c @@ -374,7 +374,7 @@ gail_notebook_get_selection_count (AtkSelection *selection) return 0; notebook = GTK_NOTEBOOK (widget); - if (notebook == NULL) + if (notebook == NULL || gtk_notebook_get_current_page (notebook) == -1) return 0; else return 1;