diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-08 17:26:01 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-08 17:26:01 +0000 |
commit | b71a24d4c87b70586acb34eae882c8532fe86aba (patch) | |
tree | 961c542d97b9c46172e42135822f652fd9c4e6f7 /chrome/browser/gtk/menu_gtk.h | |
parent | c8ad40c6b02751c1cc942abe4ecaffbf68bfa611 (diff) | |
download | chromium_src-b71a24d4c87b70586acb34eae882c8532fe86aba.zip chromium_src-b71a24d4c87b70586acb34eae882c8532fe86aba.tar.gz chromium_src-b71a24d4c87b70586acb34eae882c8532fe86aba.tar.bz2 |
GTK bookmark manager: organize menu and aesthetic improvements.
Review URL: http://codereview.chromium.org/118388
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r-- | chrome/browser/gtk/menu_gtk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h index 4bf51cd..975580d 100644 --- a/chrome/browser/gtk/menu_gtk.h +++ b/chrome/browser/gtk/menu_gtk.h @@ -91,6 +91,8 @@ class MenuGtk { gboolean* push_in, void* void_widget); + GtkWidget* widget() const { return menu_.get(); } + private: // A recursive function that transforms a MenuCreateMaterial tree into a set // of GtkMenuItems. @@ -121,6 +123,9 @@ class MenuGtk { // Sets the check mark and enabled/disabled state on our menu items. static void SetMenuItemInfo(GtkWidget* widget, void* raw_menu); + // Updates all the menu items' state. + static void OnMenuShow(GtkWidget* widget, MenuGtk* menu); + // Sets the activating widget back to a normal appearance. static void OnMenuHidden(GtkWidget* widget, MenuGtk* menu); |