Commit 7844d3b8 authored by Matthias Clasen's avatar Matthias Clasen

Fix gail_notebook_get_selection_count()

This function should return 0 for empty notebooks. Based on
a patch by Mike Gorse, bug 557263.
parent f760538f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment