зеркало из https://github.com/mozilla/pjs.git
Bug 105668 - make gtk embedding widget properly implement FocusNextElement and FocusPrevElement. r=jag, r/sr=blizzard.
This commit is contained in:
Родитель
8815414e05
Коммит
28b8f42f18
|
@ -258,13 +258,23 @@ EmbedWindow::ExitModalEventLoop(nsresult aStatus)
|
|||
NS_IMETHODIMP
|
||||
EmbedWindow::FocusNextElement()
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
GtkWidget* parent = GTK_WIDGET(mOwner->mOwningWidget)->parent;
|
||||
|
||||
if (GTK_IS_CONTAINER(parent))
|
||||
gtk_container_focus(GTK_CONTAINER(parent),
|
||||
GTK_DIR_TAB_FORWARD);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
EmbedWindow::FocusPrevElement()
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
GtkWidget* parent = GTK_WIDGET(mOwner->mOwningWidget)->parent;
|
||||
|
||||
if (GTK_IS_CONTAINER(parent))
|
||||
gtk_container_focus(GTK_CONTAINER(parent),
|
||||
GTK_DIR_TAB_BACKWARD);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsIEmbeddingSiteWindow
|
||||
|
|
Загрузка…
Ссылка в новой задаче