I like to create an animated statusbar icon like this: void animate_statusbar_icon(Glib::RefPtr< Gtk::StatusIcon > icon) { while (true) { icon->set_from_file("icon.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_2.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_3.png"); sleep(1); icon->set_from_file("icon_4.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_5.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_6.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_7.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_8.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_9.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_10.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_11.png"); icon->set_visible(); sleep(1); icon->set_from_file("icon_12.png"); icon->set_visible(); sleep(1); } } but it not show the icon al all, i need an aproach how to do it. Thanks
Attachment:
smime.p7s
Description: S/MIME cryptographic signature