Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2250)

Unified Diff: chrome/browser/gtk/keyword_editor_view.cc

Issue 2501001: Update dialog parent handling logic. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_);
« chrome/browser/chromeos/options/options_window_view.cc ('K') | « chrome/browser/gtk/gtk_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698