Gtk::MessageDialog and set_image() method problem
- From: Christopher Lang <christopher lang acurana de>
- To: gtkmm-list gnome org
- Subject: Gtk::MessageDialog and set_image() method problem
- Date: Fri, 4 Jan 2008 14:34:13 +0100
Hi,
I have some trouble setting a custom image or widget with the set_image(...)
method of Gtk::MessageDialog.
Regardless which widget I use with set_image, the image in the dialog is empty
afterwards. It also doesn't work with stock images.
Any clues or help is appreciated.
thanks,
Chris
/usr/lib64/libgtkmm-2.4.so
rpm: gtkmm2-2.10.8-2.10
Suse 10.1
some_MessageDialog* dialog = new some_MessageDialog(*mwin,
"some text ?",
false,
Gtk::BUTTONS_YES_NO,
true);
dialog->set_secondary_text ("some text");
Gtk::Image* img = new Gtk::Image(PACKAGE_PIXMAPS_DIR"/some-icon-48.png");
// Gtk::StockID ("gtk-new"), Gtk::ICON_SIZE_DIALOG);
dialog->set_image (*img);
--
http://www.acurana.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]