summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/widget_gtk.cc')
-rw-r--r--views/widget/widget_gtk.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index ecb131c..961dd85 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -427,7 +427,12 @@ void WidgetGtk::SetBounds(const gfx::Rect& bounds) {
}
void WidgetGtk::MoveAbove(Widget* widget) {
- NOTIMPLEMENTED();
+ DCHECK(widget_);
+ DCHECK(widget_->window);
+ // TODO(oshima): gdk_window_restack is not available in gtk2.0, so
+ // we're simply raising the window to the top. We should switch to
+ // gdk_window_restack when we upgrade gtk to 2.18 or up.
+ gdk_window_raise(widget_->window);
}
void WidgetGtk::SetShape(gfx::NativeRegion region) {
@@ -496,7 +501,8 @@ void WidgetGtk::SetOpacity(unsigned char opacity) {
}
void WidgetGtk::SetAlwaysOnTop(bool on_top) {
- NOTIMPLEMENTED();
+ DCHECK(widget_);
+ gtk_window_set_keep_above(GTK_WINDOW(widget_), on_top);
}
RootView* WidgetGtk::GetRootView() {