diff options
author | raveit65 <[email protected]> | 2023-09-30 20:53:02 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-10-02 18:26:36 +0200 |
commit | f41d8ccb7c7418c65b6102ff163dbb60f88069ca (patch) | |
tree | 32c76237118718eec1249fa63a802cc17b110a85 | |
parent | 5fbd44b2f5b99d44ddf1b7a8521a61c0183d0bb3 (diff) | |
download | atril-f41d8ccb7c7418c65b6102ff163dbb60f88069ca.tar.bz2 atril-f41d8ccb7c7418c65b6102ff163dbb60f88069ca.tar.xz |
replace deprecated gtk_image_menu_item_new_from_stock
-rw-r--r-- | shell/ev-sidebar-links.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index 98b16a1f..e6531cae 100644 --- a/shell/ev-sidebar-links.c +++ b/shell/ev-sidebar-links.c @@ -29,6 +29,8 @@ #include <glib/gi18n.h> #include <gtk/gtk.h> +#include <libmate-desktop/mate-image-menu-item.h> + #include "ev-document-links.h" #include "ev-job-scheduler.h" #include "ev-sidebar-links.h" @@ -331,11 +333,13 @@ static GtkMenu * build_popup_menu (EvSidebarLinks *sidebar) { GtkWidget *menu; + GtkWidget *image; GtkWidget *item; menu = gtk_menu_new (); - item = gtk_image_menu_item_new_from_stock ("gtk-print", NULL); - gtk_label_set_label (GTK_LABEL (gtk_bin_get_child (GTK_BIN (item))), _("Print…")); + item = mate_image_menu_item_new_with_label ("Print…"); + image = gtk_image_new_from_icon_name ("gtk-print", GTK_ICON_SIZE_MENU); + mate_image_menu_item_set_image (MATE_IMAGE_MENU_ITEM (item), image); gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (item, "activate", |