summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2023-09-30 20:53:02 +0200
committerraveit65 <[email protected]>2023-10-02 18:26:36 +0200
commitf41d8ccb7c7418c65b6102ff163dbb60f88069ca (patch)
tree32c76237118718eec1249fa63a802cc17b110a85 /shell
parent5fbd44b2f5b99d44ddf1b7a8521a61c0183d0bb3 (diff)
downloadatril-f41d8ccb7c7418c65b6102ff163dbb60f88069ca.tar.bz2
atril-f41d8ccb7c7418c65b6102ff163dbb60f88069ca.tar.xz
replace deprecated gtk_image_menu_item_new_from_stock
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-sidebar-links.c8
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",