mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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 7844d3b8db
)
This commit is contained in:
parent
2161fb5b8c
commit
64bcdb78e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user