mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Show tooltip over icon if icon contains Comment key.
This commit is contained in:
parent
2c9f804aa3
commit
361d3a532a
@ -385,6 +385,9 @@ DesktopIcon *Desktop::read_desktop_file(const char *path, const char *base, Desk
|
||||
else
|
||||
ret->set_image(NULL);
|
||||
|
||||
if(df.comment(buf, sizeof(buf)))
|
||||
ret->set_tooltip(buf);
|
||||
|
||||
if(df.exec(buf, sizeof(buf))) ret->set_cmd(buf);
|
||||
}
|
||||
|
||||
|
@ -152,6 +152,10 @@ void DesktopIcon::set_image(const char *name) {
|
||||
size(img_w + OFFSET_W, img_h + OFFSET_H);
|
||||
}
|
||||
|
||||
void DesktopIcon::set_tooltip(const char *tip) {
|
||||
copy_tooltip(tip);
|
||||
}
|
||||
|
||||
void DesktopIcon::update_label_font_and_size(void) {
|
||||
E_RETURN_IF_FAIL(opts != 0);
|
||||
|
||||
|
@ -97,6 +97,7 @@ public:
|
||||
void set_icon_type(int c) { icon_type = c; }
|
||||
int get_icon_type(void) { return icon_type;}
|
||||
void set_image(const char *name);
|
||||
void set_tooltip(const char *tip);
|
||||
|
||||
void update_label_font_and_size(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user