summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_editor_gtk.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 22:00:39 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 22:00:39 +0000
commit6128eae7d27e2fd1446fabe7af4f1033a2937934 (patch)
treef6e0caacb21d47f749f5ee756f453dfdbd300353 /chrome/browser/gtk/bookmark_editor_gtk.cc
parent26feb1fe0c81e3545aa2bc85bc6ec7cc366049cd (diff)
downloadchromium_src-6128eae7d27e2fd1446fabe7af4f1033a2937934.zip
chromium_src-6128eae7d27e2fd1446fabe7af4f1033a2937934.tar.gz
chromium_src-6128eae7d27e2fd1446fabe7af4f1033a2937934.tar.bz2
Converts a bunch things from NativeWindow to NativeView to make it
easier for callers. Also gets bookmark menu button to compile. I'm also removing a function I just added to gtk_util as it's not needed. GTK offers gtk_widget_get_toplevel which does what I need. BUG=none TEST=none Review URL: http://codereview.chromium.org/115831 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_editor_gtk.cc')
-rw-r--r--chrome/browser/gtk/bookmark_editor_gtk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/gtk/bookmark_editor_gtk.cc b/chrome/browser/gtk/bookmark_editor_gtk.cc
index 7f5ed6f..e8a3a93 100644
--- a/chrome/browser/gtk/bookmark_editor_gtk.cc
+++ b/chrome/browser/gtk/bookmark_editor_gtk.cc
@@ -33,7 +33,7 @@ static const int kTreeHeight = 150;
} // namespace
// static
-void BookmarkEditor::Show(gfx::NativeWindow parent_hwnd,
+void BookmarkEditor::Show(gfx::NativeView parent_hwnd,
Profile* profile,
BookmarkNode* parent,
BookmarkNode* node,
@@ -41,8 +41,8 @@ void BookmarkEditor::Show(gfx::NativeWindow parent_hwnd,
Handler* handler) {
DCHECK(profile);
BookmarkEditorGtk* editor =
- new BookmarkEditorGtk(parent_hwnd, profile, parent, node, configuration,
- handler);
+ new BookmarkEditorGtk(GTK_WINDOW(gtk_widget_get_toplevel(parent_hwnd)),
+ profile, parent, node, configuration, handler);
editor->Show();
}