Hello. > 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();
I think this is Ubuntu's "fault". They decided to reduce visual clutter and trim images from menu items, buttons, etc. by default. User can change this by setting "gtk-button-images" and "gtk-menu-images" GtkSettings to TRUE, but I cannot help you with GUI tools, since I don't use Ubuntu or GNOME. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list