summaryrefslogtreecommitdiff
path: root/plugins/spell/pluma-automatic-spell-checker.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-18 23:24:59 +0100
committerraveit65 <[email protected]>2018-02-08 21:34:17 +0100
commit2217a021ca5c5ac918dd6e41c4ef29435b5a6b8e (patch)
tree136751a6809f3f9dc590c4fc8f0a588e7e86e190 /plugins/spell/pluma-automatic-spell-checker.c
parent29d362e10ff63935fa1ecc12a0156b43fd3c11b9 (diff)
downloadpluma-2217a021ca5c5ac918dd6e41c4ef29435b5a6b8e.tar.bz2
pluma-2217a021ca5c5ac918dd6e41c4ef29435b5a6b8e.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'plugins/spell/pluma-automatic-spell-checker.c')
-rw-r--r--plugins/spell/pluma-automatic-spell-checker.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/spell/pluma-automatic-spell-checker.c b/plugins/spell/pluma-automatic-spell-checker.c
index 76d4be96..0bf16147 100644
--- a/plugins/spell/pluma-automatic-spell-checker.c
+++ b/plugins/spell/pluma-automatic-spell-checker.c
@@ -498,8 +498,8 @@ build_suggestion_menu (PlumaAutomaticSpellChecker *spell, const gchar *word)
/* Ignore all */
mi = gtk_image_menu_item_new_with_mnemonic (_("_Ignore All"));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
- gtk_image_new_from_stock (GTK_STOCK_GOTO_BOTTOM,
- GTK_ICON_SIZE_MENU));
+ gtk_image_new_from_icon_name ("go-bottom",
+ GTK_ICON_SIZE_MENU));
g_signal_connect (mi,
"activate",
@@ -513,8 +513,8 @@ build_suggestion_menu (PlumaAutomaticSpellChecker *spell, const gchar *word)
/* + Add to Dictionary */
mi = gtk_image_menu_item_new_with_mnemonic (_("_Add"));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
- gtk_image_new_from_stock (GTK_STOCK_ADD,
- GTK_ICON_SIZE_MENU));
+ gtk_image_new_from_icon_name ("list-add",
+ GTK_ICON_SIZE_MENU));
g_signal_connect (mi,
"activate",
@@ -549,7 +549,7 @@ populate_popup (GtkTextView *textview, GtkMenu *menu, PlumaAutomaticSpellChecker
gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), mi);
/* then, on top of it, the suggestions menu. */
- img = gtk_image_new_from_stock (GTK_STOCK_SPELL_CHECK, GTK_ICON_SIZE_MENU);
+ img = gtk_image_new_from_icon_name ("tools-check-spelling", GTK_ICON_SIZE_MENU);
mi = gtk_image_menu_item_new_with_mnemonic (_("_Spelling Suggestions..."));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), img);