mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fix for icon pick from icon chooser.
Now loader will use IconLoader::set() to fetch icon from choosen result.
This commit is contained in:
parent
6a7296bcae
commit
c93bfdf7ee
@ -129,13 +129,9 @@ static void ok_cb(Fl_Widget*, void*) {
|
|||||||
|
|
||||||
static void img_browse_cb(Fl_Widget*, void*) {
|
static void img_browse_cb(Fl_Widget*, void*) {
|
||||||
img_path = icon_chooser(ICON_SIZE_HUGE);
|
img_path = icon_chooser(ICON_SIZE_HUGE);
|
||||||
if(img_path.empty()) return;
|
|
||||||
|
|
||||||
Fl_Image* im = Fl_Shared_Image::get(img_path.c_str());
|
if(!img_path.empty())
|
||||||
if(!im) return;
|
IconLoader::set(img, img_path.c_str(), ICON_SIZE_HUGE);
|
||||||
|
|
||||||
img->image(im);
|
|
||||||
img->redraw();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void file_browse_cb(Fl_Widget*, void*) {
|
static void file_browse_cb(Fl_Widget*, void*) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user