Fix for icon pick from icon chooser.

Now loader will use IconLoader::set() to fetch icon from choosen result.
This commit is contained in:
Sanel Zukan 2013-01-04 15:01:55 +00:00
parent 6a7296bcae
commit c93bfdf7ee
1 changed files with 2 additions and 6 deletions

View File

@ -129,13 +129,9 @@ static void ok_cb(Fl_Widget*, void*) {
static void img_browse_cb(Fl_Widget*, void*) {
img_path = icon_chooser(ICON_SIZE_HUGE);
if(img_path.empty()) return;
Fl_Image* im = Fl_Shared_Image::get(img_path.c_str());
if(!im) return;
img->image(im);
img->redraw();
if(!img_path.empty())
IconLoader::set(img, img_path.c_str(), ICON_SIZE_HUGE);
}
static void file_browse_cb(Fl_Widget*, void*) {