diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 17:16:13 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 17:16:13 +0000 |
commit | 17c82582979fb65ea46d84c4e014efe6d7705166 (patch) | |
tree | f1f5d2a946ce025215f6997fd3a8d9206be1aa50 /views/controls/menu/menu_host_gtk.cc | |
parent | 27ad98351b503a436de21c76c2e7944451b620a3 (diff) | |
download | chromium_src-17c82582979fb65ea46d84c4e014efe6d7705166.zip chromium_src-17c82582979fb65ea46d84c4e014efe6d7705166.tar.gz chromium_src-17c82582979fb65ea46d84c4e014efe6d7705166.tar.bz2 |
Make views menu have a similar look and feel of native menu on ChromeOS:
- Mark menu host popup with GDK_WINDOW_TYPE_HINT_MENU so that window manager
would add drop shadow and border to it;
- Use the same gradient fill as menu's background;
- Use the same selection color and text color;
BUG=<http://crosbug.com/1885>
TEST=Verify bookmark menu have a similar look and feel as other menus (e.g. wrench menu).
Review URL: http://codereview.chromium.org/1547030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44370 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/menu/menu_host_gtk.cc')
-rw-r--r-- | views/controls/menu/menu_host_gtk.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/views/controls/menu/menu_host_gtk.cc b/views/controls/menu/menu_host_gtk.cc index 38945e5..bdd8ffe 100644 --- a/views/controls/menu/menu_host_gtk.cc +++ b/views/controls/menu/menu_host_gtk.cc @@ -34,6 +34,8 @@ void MenuHost::Init(gfx::NativeWindow parent, View* contents_view, bool do_capture) { WidgetGtk::Init(GTK_WIDGET(parent), bounds); + gtk_window_set_type_hint(GTK_WINDOW(GetNativeView()), + GDK_WINDOW_TYPE_HINT_MENU); SetContentsView(contents_view); Show(); if (do_capture) |