diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 19:55:02 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 19:55:02 +0000 |
commit | 5aae4c66b3b7343677c64c4291982822459f2cba (patch) | |
tree | c5c9cbe9a3b5363fddc2bfd0119773d56f000e45 /views/widget | |
parent | ca6c1354c68d409a874395870e601d48c3093a5b (diff) | |
download | chromium_src-5aae4c66b3b7343677c64c4291982822459f2cba.zip chromium_src-5aae4c66b3b7343677c64c4291982822459f2cba.tar.gz chromium_src-5aae4c66b3b7343677c64c4291982822459f2cba.tar.bz2 |
Wires up views/gtk to use the gtk bookmark editor.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/271001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r-- | views/widget/widget_gtk.cc | 5 | ||||
-rw-r--r-- | views/widget/widget_gtk.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index b53cdc2..e79a994 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -129,6 +129,11 @@ WidgetGtk::~WidgetGtk() { MessageLoopForUI::current()->RemoveObserver(this); } +GtkWindow* WidgetGtk::GetTransientParent() { + return (type_ != TYPE_CHILD && widget_) ? + gtk_window_get_transient_for(GTK_WINDOW(widget_)) : NULL; +} + bool WidgetGtk::MakeTransparent() { // Transparency can only be enabled for windows/popups and only if we haven't // realized the widget. diff --git a/views/widget/widget_gtk.h b/views/widget/widget_gtk.h index f91befa..ccd3bd5 100644 --- a/views/widget/widget_gtk.h +++ b/views/widget/widget_gtk.h @@ -61,6 +61,10 @@ class WidgetGtk transient_to_parent_ = true; } + // Returns the transient parent. See make_transient_to_parent for details on + // what the transient parent is. + GtkWindow* GetTransientParent(); + // Makes the background of the window totally transparent. This must be // invoked before Init. This does a couple of checks and returns true if // the window can be made transparent. The actual work of making the window |