diff options
author | raveit65 <[email protected]> | 2017-05-12 23:48:49 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-06-11 21:33:48 +0200 |
commit | efc9e4b19171af3141d3406fa14d0c6adc0c4203 (patch) | |
tree | 890f8e99b8429929dac7d3ed3a92b5dcae74d91f | |
parent | f37fe2d075a258cd6764065f62862093aa29b131 (diff) | |
download | pluma-efc9e4b19171af3141d3406fa14d0c6adc0c4203.tar.bz2 pluma-efc9e4b19171af3141d3406fa14d0c6adc0c4203.tar.xz |
tag-list-plugin: avoid deprecated GtkStock
-rw-r--r-- | plugins/taglist/pluma-taglist-plugin.c | 2 | ||||
-rw-r--r-- | pluma/pluma-panel.c | 8 | ||||
-rw-r--r-- | pluma/pluma-panel.h | 4 | ||||
-rw-r--r-- | pluma/pluma-window.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/plugins/taglist/pluma-taglist-plugin.c b/plugins/taglist/pluma-taglist-plugin.c index 7feeeb78..6032d101 100644 --- a/plugins/taglist/pluma-taglist-plugin.c +++ b/plugins/taglist/pluma-taglist-plugin.c @@ -123,7 +123,7 @@ pluma_taglist_plugin_activate (PeasActivatable *activatable) pluma_panel_add_item_with_stock_icon (side_panel, priv->taglist_panel, _("Tags"), - GTK_STOCK_ADD); + "list-add"); } static void diff --git a/pluma/pluma-panel.c b/pluma/pluma-panel.c index 505d6c33..fc87bf48 100644 --- a/pluma/pluma-panel.c +++ b/pluma/pluma-panel.c @@ -717,14 +717,14 @@ void pluma_panel_add_item_with_stock_icon (PlumaPanel *panel, GtkWidget *item, const gchar *name, - const gchar *stock_id) + const gchar *icon_name) { GtkWidget *icon = NULL; - if (stock_id != NULL) + if (icon_name != NULL) { - icon = gtk_image_new_from_stock (stock_id, - GTK_ICON_SIZE_MENU); + icon = gtk_image_new_from_icon_name (icon_name, + GTK_ICON_SIZE_MENU); } pluma_panel_add_item (panel, item, name, icon); diff --git a/pluma/pluma-panel.h b/pluma/pluma-panel.h index 68de84c0..ccda47de 100644 --- a/pluma/pluma-panel.h +++ b/pluma/pluma-panel.h @@ -100,8 +100,8 @@ void pluma_panel_add_item (PlumaPanel *panel, void pluma_panel_add_item_with_stock_icon (PlumaPanel *panel, GtkWidget *item, - const gchar *name, - const gchar *stock_id); + const gchar *name, + const gchar *icon_name); gboolean pluma_panel_remove_item (PlumaPanel *panel, GtkWidget *item); diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c index b24434df..b1dcea9c 100644 --- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -3569,7 +3569,7 @@ create_side_panel (PlumaWindow *window) pluma_panel_add_item_with_stock_icon (PLUMA_PANEL (window->priv->side_panel), documents_panel, _("Documents"), - GTK_STOCK_FILE); + "text-x-generic"); } static void |