Index: chrome/browser/gtk/keyword_editor_view.cc |
diff --git a/chrome/browser/gtk/keyword_editor_view.cc b/chrome/browser/gtk/keyword_editor_view.cc |
index fc597de57b97bde8e626192b0328f47ff65070ef..199c624f5f46ec184231eef45d1ec706451936b7 100644 |
--- a/chrome/browser/gtk/keyword_editor_view.cc |
+++ b/chrome/browser/gtk/keyword_editor_view.cc |
@@ -449,7 +449,8 @@ void KeywordEditorView::OnRowActivated(GtkTreeView* tree_view, |
void KeywordEditorView::OnAddButtonClicked(GtkButton* button, |
KeywordEditorView* editor) { |
new EditSearchEngineDialog( |
- GTK_WINDOW(gtk_widget_get_toplevel(editor->dialog_)), |
+ GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET( |
+ gtk_util::GetDialogWindow(editor->dialog_)))), |
NULL, |
editor, |
editor->profile_); |
@@ -463,7 +464,8 @@ void KeywordEditorView::OnEditButtonClicked(GtkButton* button, |
return; |
new EditSearchEngineDialog( |
- GTK_WINDOW(gtk_widget_get_toplevel(editor->dialog_)), |
+ GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET( |
+ gtk_util::GetDialogWindow(editor->dialog_)))), |
editor->controller_->GetTemplateURL(model_row), |
editor, |
editor->profile_); |