diff options
author | raveit65 <[email protected]> | 2023-10-15 14:18:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-10-16 12:40:54 +0200 |
commit | 8115cbecd188b4519ea2b68797a6b50f28867c83 (patch) | |
tree | 7d5a8cb704768ed7c4a3c0ea5b66c1ba775a4859 /src | |
parent | 7886eb1ad39eea7a0ea75e82dd112ec423f0b608 (diff) | |
download | mate-power-manager-8115cbecd188b4519ea2b68797a6b50f28867c83.tar.bz2 mate-power-manager-8115cbecd188b4519ea2b68797a6b50f28867c83.tar.xz |
replace deprecated gtk_image_menu_item_new_from_stock
Diffstat (limited to 'src')
-rw-r--r-- | src/gpm-tray-icon.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |