Re: ComboBox draw point



On Wed, 2009-03-18 at 00:20 -0600, Eddie Carle wrote:
> Hmm. I'm starting to think that this doesn't really have as much to do
> with the TreeModel as it doesn the ComboBox. I just tried making a test
> ComboBox with the sample custom TreeModel included with the gtkmm
> tarball.

You have tried it with a standard ListStore or TreeStore, right?

>  The following code results in the same problem as I am having
> with my custom TreeModel. The rows all show, but they are blank. Does
> this ring anyones bells?
> 
> #include "exampletreemodel.h"
> 
> int main(int argc, char *argv[])
> {
>     Gtk::Main kit(argc, argv);
> 
>     Gtk::Window window;
>     Glib::RefPtr<Gtk::TreeModel> tree(ExampleTreeModel::create());
>     Gtk::ComboBox comboBox(tree);
>     comboBox.pack_start(Gtk::TreeModelColumn<Glib::ustring>());
>     window.add(comboBox);
>     window.show_all();
> 
>     Gtk::Main::run(window);
> 
>     return 0;
> }
> --
>         Eddie Carle
>         
>         This message has been signed with an RFC4880 signature. It is
>         guaranteed to have originated from Eddie Carle and its contents
>         can be validated against its signature.
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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