summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-bookmarks.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-15 01:45:55 +0100
committerraveit65 <[email protected]>2018-02-16 17:22:20 +0100
commit7a91219f5b255783690be32fe6426b8a6c640398 (patch)
treed63211014ecdc0dbbeb8e315b4d6067f9e1e62ac /shell/ev-sidebar-bookmarks.c
parented3b7f0015cf629a2d7e69f60b166978d6859305 (diff)
downloadatril-7a91219f5b255783690be32fe6426b8a6c640398.tar.bz2
atril-7a91219f5b255783690be32fe6426b8a6c640398.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'shell/ev-sidebar-bookmarks.c')
-rw-r--r--shell/ev-sidebar-bookmarks.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c
index 2823328a..dc3752fb 100644
--- a/shell/ev-sidebar-bookmarks.c
+++ b/shell/ev-sidebar-bookmarks.c
@@ -151,7 +151,7 @@ ev_bookmarks_popup_cmd_remove_bookmark (GtkAction *action,
}
static const GtkActionEntry popup_entries[] = {
- { "OpenBookmark", GTK_STOCK_OPEN, N_("_Open Bookmark"), NULL,
+ { "OpenBookmark", "document-open", N_("_Open Bookmark"), NULL,
NULL, G_CALLBACK (ev_bookmarks_popup_cmd_open_bookmark) },
{ "RenameBookmark", NULL, N_("_Rename Bookmark"), NULL,
NULL, G_CALLBACK (ev_bookmarks_popup_cmd_rename_bookmark) },
@@ -473,7 +473,9 @@ ev_sidebar_bookmarks_init (EvSidebarBookmarks *sidebar_bookmarks)
hbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
- priv->add_button = gtk_button_new_from_stock (GTK_STOCK_ADD);
+ priv->add_button = gtk_button_new_with_mnemonic (_("_Add"));
+ gtk_button_set_image (GTK_BUTTON (priv->add_button), gtk_image_new_from_icon_name ("list-add", GTK_ICON_SIZE_BUTTON));
+
g_signal_connect (priv->add_button, "clicked",
G_CALLBACK (ev_sidebar_bookmarks_add_clicked),
sidebar_bookmarks);
@@ -481,7 +483,9 @@ ev_sidebar_bookmarks_init (EvSidebarBookmarks *sidebar_bookmarks)
gtk_box_pack_start (GTK_BOX (hbox), priv->add_button, TRUE, TRUE, 6);
gtk_widget_show (priv->add_button);
- priv->del_button = gtk_button_new_from_stock (GTK_STOCK_REMOVE);
+ priv->del_button = gtk_button_new_with_mnemonic (_("_Remove"));
+ gtk_button_set_image (GTK_BUTTON (priv->del_button), gtk_image_new_from_icon_name ("list-remove", GTK_ICON_SIZE_BUTTON));
+
g_signal_connect (priv->del_button, "clicked",
G_CALLBACK (ev_sidebar_bookmarks_del_clicked),
sidebar_bookmarks);