Fix gail_notebook_get_selection_count()
This function should return 0 for empty notebooks. Based on a patch by Mike Gorse, bug 557263.
This commit is contained in:
@ -374,7 +374,7 @@ gail_notebook_get_selection_count (AtkSelection *selection)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
notebook = GTK_NOTEBOOK (widget);
|
notebook = GTK_NOTEBOOK (widget);
|
||||||
if (notebook == NULL)
|
if (notebook == NULL || gtk_notebook_get_current_page (notebook) == -1)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user