Re: Debug for a GdkPixbuf CRITICAL error message...



2012/6/10 Kjell Ahlstedt <kjell ahlstedt bredband net>:
> 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

Yesterday, I reported this bug:
https://bugzilla.gnome.org/show_bug.cgi?id=677752

Thanks for your interest,

Glus

> 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
>>
>>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]