Hey, All,
The following code works great in 32 bit and 64bit <= 9.04, but no bitmap
appears when I run in 64bit 9.10.
Gtk::Image* img = NULL;
if (btnImageName.length() > 0)
{
cppstring path = GUtils::OSGetIconFolder() + btnImageName + L".png";
img = new
Gtk::Image(GTextUtils::ConvertUTF16WideStringToUTF8String(path));
}
Gtk::Button* btn = new Gtk::Button;
if (img != NULL)
{
btn->set_image(*img);
btn->set_image_position(Gtk::POS_LEFT);
}
btn->set_alignment(0.0, 0.5);
btn->signal_clicked().connect(sigc::bind(sigc::mem_fun(this,
&LXLiveReadoutManager::ToggleSourceWindow), sourceID));
m_ButtonMap[sourceID] = btn;
m_ButtonBox->add(*btn);
m_ButtonBox->show_all();
It is finding the image and making the btn->set_image call.
Thanks in advance.
-Garth
--
Garth Upshaw
Garth's KidStuff
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list