Widgets in a Combo box


I'm trying to put a widget inside the drop down part of the combo box,
specifically a Calendar widget - basically trying to emulate the
Gnome::DateEdit widget which is braindead for date formats that are
non-US. The Gtk documentation says that pretty much any widget can be
put in the dropdown box, but I just can't get it to work:


use Gtk;
init Gtk;

$window = new Gtk::Window;
$combo = new Gtk::Combo;

$calendar = new Gtk::Calendar;

$combo->set_popdown_strings ($calendar);

main Gtk;

Just prints the stringified version of Calendar in the box.

Any help at all would be gratefully recieved.


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