From 8115cbecd188b4519ea2b68797a6b50f28867c83 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 15 Oct 2023 14:18:08 +0200 Subject: replace deprecated gtk_image_menu_item_new_from_stock --- src/gpm-tray-icon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c index e8e84bb..d4055f1 100644 --- a/src/gpm-tray-icon.c +++ b/src/gpm-tray-icon.c @@ -392,7 +392,9 @@ gpm_tray_icon_create_menu (GpmTrayIcon *icon) gtk_style_context_add_class(context,"mate-panel-menu-bar"); /* about */ - item = gtk_image_menu_item_new_from_stock ("gtk-about", NULL); + item = mate_image_menu_item_new_with_mnemonic (_("_About")); + image = gtk_image_new_from_icon_name ("help-about", GTK_ICON_SIZE_MENU); + mate_image_menu_item_set_image (MATE_IMAGE_MENU_ITEM (item), image); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK (gpm_tray_icon_show_about_cb), icon); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); -- cgit v1.2.1