diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2014-11-03 18:51:42 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2014-11-03 18:51:42 -0200 |
commit | 7a507b628bf786ef317ba7fac5d2df0611582435 (patch) | |
tree | e20048b87ee689fad0d2a9ea4b7ac01d067743a0 /shell/shell.c | |
parent | b66eb31f4ed5abe8639d3a2b0f50c74191426e2d (diff) |
Fix compilation with GTK+ older than 2.18
Based on patch by @mckaygerhard. Fixes #2.
Diffstat (limited to 'shell/shell.c')
-rw-r--r-- | shell/shell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c index c6add81b..0f45d227 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -503,7 +503,9 @@ static void menu_item_set_icon_always_visible(Shell *shell, path = g_strdup_printf("%s/%s", parent_path, item_id); menuitem = gtk_ui_manager_get_widget(shell->ui_manager, path); +#if GTK_CHECK_VERSION(2, 18, 0) gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(menuitem), TRUE); +#endif g_free(path); } |