From 786cd10ca065d1d2be8b05e2d282fdb5c77b7507 Mon Sep 17 00:00:00 2001 From: Morgan Hardwood Date: Sun, 8 Jul 2018 14:07:51 +0200 Subject: [PATCH] Use named GTK+ icon instead of custom PNG Fixes #4665 --- rtgui/popupcommon.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtgui/popupcommon.cc b/rtgui/popupcommon.cc index c79c69011..a64c8303b 100644 --- a/rtgui/popupcommon.cc +++ b/rtgui/popupcommon.cc @@ -79,7 +79,8 @@ bool PopUpCommon::addEntry (const Glib::ustring& fileName, const Glib::ustring& // When there is at least 1 choice, we add the arrow button if (images.size() == 1) { Gtk::Button* arrowButton = Gtk::manage( new Gtk::Button() ); - RTImage* arrowImage = Gtk::manage( new RTImage("popuparrow.png") ); + Gtk::Image *arrowImage = Gtk::manage(new Gtk::Image()); + arrowImage->set_from_icon_name("pan-down-symbolic", Gtk::ICON_SIZE_BUTTON); setExpandAlignProperties(arrowButton, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL); arrowButton->add(*arrowImage); //menuSymbol); buttonGroup->attach_next_to(*arrowButton, *button, Gtk::POS_RIGHT, 1, 1);