diff options
Diffstat (limited to 'views/controls/menu/menu_host_gtk.h')
-rw-r--r-- | views/controls/menu/menu_host_gtk.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/views/controls/menu/menu_host_gtk.h b/views/controls/menu/menu_host_gtk.h index 6e70bc9..545acb5 100644 --- a/views/controls/menu/menu_host_gtk.h +++ b/views/controls/menu/menu_host_gtk.h @@ -30,17 +30,12 @@ class MenuHost : public WidgetGtk { protected: virtual RootView* CreateRootView(); - // If the grab breaks we cancel the menu. - virtual gboolean OnGrabBrokeEvent(GtkWidget* widget, GdkEvent* event); - virtual void OnGrabNotify(GtkWidget* widget, gboolean was_grabbed); + virtual void OnCancelMode(); // Overriden to return false, we do NOT want to release capture on mouse // release. virtual bool ReleaseCaptureOnMouseReleased(); - // Overriden to also release pointer grab. - virtual void ReleaseGrab(); - private: // If true, we've been closed. bool closed_; @@ -48,9 +43,6 @@ class MenuHost : public WidgetGtk { // The view we contain. SubmenuView* submenu_; - // Have we done a pointer grab? - bool did_pointer_grab_; - DISALLOW_COPY_AND_ASSIGN(MenuHost); }; |