Re: Writing tests for a UI app



Far easier than calling $renderer->start_editing is asking the view to
set the cursor on a column & path and start editing it.

I couldn't quite figure this out. I am able to set the cursor on the
required column & path and start_editing. The treeview looks like that
cell is ready to be edited. But I couldn't figure out how to actually
cause the 'edited' event to be thrown.

I figured it has something to do with the comment, "Please note that
editing can only happen when the widget is realized." So I thought,
this must happen during the Gtk2->main loop. I tinkered with
Glib::Idle etc but I guess I am on the wrong track.

I am attaching a sample piece of code. If you can suggest how I can
get the 'edited' to be thrown, that'll be of great help.

Attachment: tree_test.pl
Description: Binary data



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