diff options
author | raveit65 <[email protected]> | 2017-05-13 14:09:19 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-06-11 21:33:48 +0200 |
commit | 36157f0f9fd880b4763fda3391f6f96476405fab (patch) | |
tree | 8e7351d973089d2ef189cebe95fa6436c64371af | |
parent | a012da8526d450b02b963ed55022d6505910fab1 (diff) | |
download | pluma-36157f0f9fd880b4763fda3391f6f96476405fab.tar.bz2 pluma-36157f0f9fd880b4763fda3391f6f96476405fab.tar.xz |
plumal-panel: remove some GtkStock deprecations
-rw-r--r-- | pluma/pluma-panel.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pluma/pluma-panel.c b/pluma/pluma-panel.c index fc87bf48..430f3a90 100644 --- a/pluma/pluma-panel.c +++ b/pluma/pluma-panel.c @@ -311,9 +311,9 @@ set_gtk_image_from_gtk_image (GtkImage *image, } break; default: - gtk_image_set_from_stock (image, - GTK_STOCK_FILE, - GTK_ICON_SIZE_MENU); + gtk_image_set_from_icon_name (image, + "text-x-generic", + GTK_ICON_SIZE_MENU); } } @@ -337,9 +337,9 @@ sync_title (PlumaPanel *panel, gtk_label_set_text (GTK_LABEL (panel->priv->title_label), _("Empty")); - gtk_image_set_from_stock (GTK_IMAGE (panel->priv->title_image), - GTK_STOCK_FILE, - GTK_ICON_SIZE_MENU); + gtk_image_set_from_icon_name (GTK_IMAGE (panel->priv->title_image), + "text-x-generic", + GTK_ICON_SIZE_MENU); } } @@ -494,8 +494,8 @@ build_vertical_panel (PlumaPanel *panel) 0); panel->priv->title_image = - gtk_image_new_from_stock (GTK_STOCK_FILE, - GTK_ICON_SIZE_MENU); + gtk_image_new_from_icon_name ("text-x-generic", + GTK_ICON_SIZE_MENU); gtk_box_pack_start (GTK_BOX (icon_name_hbox), panel->priv->title_image, FALSE, @@ -669,8 +669,8 @@ pluma_panel_add_item (PlumaPanel *panel, if (image == NULL) { /* default to empty */ - data->icon = gtk_image_new_from_stock (GTK_STOCK_FILE, - GTK_ICON_SIZE_MENU); + data->icon = gtk_image_new_from_icon_name ("text-x-generic", + GTK_ICON_SIZE_MENU); } else { |