I tested your code, which I suppose you have modified from
gtkmm-documentation/examples/book/statusicon/main.cc. I used another
icon file of type svg. Result: No critical message. If you want someone
else to troubleshoot for you, you must attach your icon file to an
email, or show a link to it, if it's available on the net.
Kjell
2012-06-08 19:46, Glus Xof skrev:
Hi again,
This code, taken from the official examples set& modified
conveniently, THROWS the same critical message...
---
#include<gtkmm.h>
int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Glib::RefPtr<Gtk::StatusIcon> status_icon =
Gtk::StatusIcon::create_from_file ("icon.svg");
/*
Glib::RefPtr<Gdk::Pixbuf> pix_status_icon =
Gdk::Pixbuf::create_from_file ("icon.svg", 48, 48);
Glib::RefPtr<Gtk::StatusIcon> status_icon =
Gtk::StatusIcon::create (pix_status_icon);
*/
//Show a window:
//The program will stop, and the status icon will disappear, when the window
//is closed.
Gtk::Window window;
window.set_title("gtkmm StatusIcon example.");
window.set_default_size(300, 300);
Gtk::Main::run(window); //Shows the window and returns when it is closed.
return 0;
}
---
What's wrong ?
Glus
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list