diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-17 21:15:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-19 17:19:50 +0100 |
commit | 1409b974003ca69e4682507f5d34c55f346b864a (patch) | |
tree | e17754232d4cd1c457253bd2cfbe8a2656f6673e /vcl/inc/unx/gtk | |
parent | 0e2a6561043c23b712b534fc3d33336d6bfcc50d (diff) |
Resolve: tdf#100429 gtk3: set custom icons in native gtk menus
Change-Id: I4798274f38c34c99d6f22f3c7959ebd9673a8966
Diffstat (limited to 'vcl/inc/unx/gtk')
-rw-r--r-- | vcl/inc/unx/gtk/glomenu.h | 10 | ||||
-rw-r--r-- | vcl/inc/unx/gtk/gtksalmenu.hxx | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/vcl/inc/unx/gtk/glomenu.h b/vcl/inc/unx/gtk/glomenu.h index b2ed606da19f..5586aa4edce1 100644 --- a/vcl/inc/unx/gtk/glomenu.h +++ b/vcl/inc/unx/gtk/glomenu.h @@ -69,11 +69,21 @@ void g_lo_menu_set_label (GLOMenu gint position, const gchar *label); +void g_lo_menu_set_icon (GLOMenu *menu, + gint position, + const GIcon *icon); + + void g_lo_menu_set_label_to_item_in_section (GLOMenu *menu, gint section, gint position, const gchar *label); +void g_lo_menu_set_icon_to_item_in_section (GLOMenu *menu, + gint section, + gint position, + const GIcon *icon); + gchar * g_lo_menu_get_label_from_item_in_section (GLOMenu *menu, gint section, gint position); diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx index ba2c858d29fd..74f03dd729d3 100644 --- a/vcl/inc/unx/gtk/gtksalmenu.hxx +++ b/vcl/inc/unx/gtk/gtksalmenu.hxx @@ -93,6 +93,7 @@ public: bool IsItemVisible( unsigned nPos ); void NativeSetItemText( unsigned nSection, unsigned nItemPos, const OUString& rText ); + void NativeSetItemIcon( unsigned nSection, unsigned nItemPos, const Image& rImage ); bool NativeSetItemCommand( unsigned nSection, unsigned nItemPos, sal_uInt16 nId, |