bitmap in button doesn't appear in 64bit 9.10
- From: "Garth's KidStuff" <garthskidstuff gmail com>
- To: gtk-app-devel-list gnome org
- Subject: bitmap in button doesn't appear in 64bit 9.10
- Date: Tue, 19 Jan 2010 09:29:55 -0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]