mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Used new features from IconChooser.
This commit is contained in:
parent
97da788155
commit
1046c2d4d5
@ -87,25 +87,7 @@ static void ok_cb(Fl_Widget*, void*) {
|
||||
if(comment->value())
|
||||
df.set_comment(comment->value());
|
||||
|
||||
if(!img_path.empty() && img_path.length() > 1) {
|
||||
/* figure out basename */
|
||||
const char *s;
|
||||
char *p, *e;
|
||||
|
||||
s = img_path.c_str();
|
||||
p = (char*)strrchr(s, E_DIR_SEPARATOR);
|
||||
|
||||
if(p && *p++) {
|
||||
/* now remove extension */
|
||||
e = (char*)strrchr((const char*)p, '.');
|
||||
if(e) *e = '\0';
|
||||
|
||||
df.set_icon(p);
|
||||
}
|
||||
} else {
|
||||
df.set_icon(DEFAULT_ICON);
|
||||
}
|
||||
|
||||
df.set_icon((img_path.length() > 1) ? img_path.c_str() : DEFAULT_ICON);
|
||||
df.set_exec(execute->value());
|
||||
|
||||
/* determine filename and save it */
|
||||
|
Loading…
Reference in New Issue
Block a user