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-20 09:07:13 +0100 |
commit | 497cb8bd5b4fa58ce01abb5359e894ae810c412d (patch) | |
tree | ef693311630efdba37b593e0d629aa530cc80a56 /vcl/inc | |
parent | 1698f0411b8d17bfd3ad8a8c6ff1488b6c63b118 (diff) |
Resolve: tdf#100429 gtk3: set custom icons in native gtk menus
Change-Id: I4798274f38c34c99d6f22f3c7959ebd9673a8966
(cherry picked from commit 1409b974003ca69e4682507f5d34c55f346b864a)
Diffstat (limited to 'vcl/inc')
-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 ad3e1d9ad840..90fcb7d95db1 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, |