Skip to content

Commit

Permalink
replace deprecated gtk_image_menu_item_new_from_stock
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Oct 15, 2023
1 parent badbda3 commit fbb9d4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gpm-tray-icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 (_("_Info"));
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);
Expand Down

0 comments on commit fbb9d4e

Please sign in to comment.