diff options
author | Antonio Fernandez <antonio.fernandez@aentos.es> | 2012-08-28 18:36:26 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:52:45 +0100 |
commit | 8bf38ff19f7e2c1b58adf8be871a2f5a076d68d1 (patch) | |
tree | ee4a4d79661318b08ee1f961bf0516fa28436e97 /vcl/inc/unx/gtk/gtksalmenu.hxx | |
parent | ec081154b6d27ebca2ab7ac1553fc38820dc4ee3 (diff) |
Menu is now generated in one step. DBus traffic improvements.
Change-Id: I67e2b804fb0b7af854f695b1a0c7e8354fe91d0b
Diffstat (limited to 'vcl/inc/unx/gtk/gtksalmenu.hxx')
-rw-r--r-- | vcl/inc/unx/gtk/gtksalmenu.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx index 324b430792d1..236bab6fc790 100644 --- a/vcl/inc/unx/gtk/gtksalmenu.hxx +++ b/vcl/inc/unx/gtk/gtksalmenu.hxx @@ -52,6 +52,7 @@ private: GMenuModel* mpMenuModel; GActionGroup* mpActionGroup; + sal_Int32 GetPositionFromItem( GtkSalMenuItem* pSalMenuItem ); void GetItemSectionAndPosition( unsigned nPos, unsigned *insertSection, unsigned *insertPos ); public: @@ -78,9 +79,11 @@ public: virtual void SetMenu( Menu* pMenu ) { mpVCLMenu = pMenu; } virtual Menu* GetMenu() { return mpVCLMenu; } virtual GtkSalMenu* GetParentSalMenu() { return mpParentSalMenu; } + virtual void SetMenuModel( GMenuModel* pMenuModel ) { mpMenuModel = pMenuModel; } virtual GMenuModel* GetMenuModel() { return mpMenuModel; } virtual unsigned GetItemCount() { return maItems.size(); } virtual GtkSalMenuItem* GetItemAtPos( unsigned nPos ) { return maItems[ nPos ]; } + virtual void SetActionGroup( GActionGroup* pActionGroup ) { mpActionGroup = pActionGroup; } virtual GActionGroup* GetActionGroup() { return mpActionGroup; } }; @@ -96,11 +99,6 @@ public: Menu* mpVCLMenu; // VCL Menu into which this MenuItem is inserted GtkSalMenu* mpParentMenu; // The menu in which this menu item is inserted GtkSalMenu* mpSubMenu; // Sub menu of this item (if defined) - - // FIXME: Most of this info should be retrieved from the GMenuModel, but doing that crashes the application at the moment. - gchar* maCommand; // Item command - gchar* maLabel; // Item label - gchar* maAccel; // Item accelerator }; #endif // GTKSALMENU_HXX |