[gtk+/gtk-2-22] Fix gail_notebook_get_selection_count()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] Fix gail_notebook_get_selection_count()
- Date: Tue, 10 Aug 2010 03:19:51 +0000 (UTC)
commit 64bcdb78e04df1c475d3548f42ff0b33396ebf01
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 9 22:22:03 2010 -0400
Fix gail_notebook_get_selection_count()
This function should return 0 for empty notebooks. Based on
a patch by Mike Gorse, bug 557263.
(cherry picked from commit 7844d3b8db94922ff17a598d6b36dd30ea0d569d)
modules/other/gail/gailnotebook.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/other/gail/gailnotebook.c b/modules/other/gail/gailnotebook.c
index 8206f66..e51e0cf 100644
--- a/modules/other/gail/gailnotebook.c
+++ b/modules/other/gail/gailnotebook.c
@@ -381,7 +381,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]