example program

I tried the examples/ program with gtk 2.12.11 and
perl-gtk 1.202 or the cvs and got just a horizontal line when clicking
to edit in the custom renderer.  Screenshot below, the line is on the

I suspect the line is the TextView with height 4 pixels, and that that
height may be all its requisition asks for.  Did it used to ask to be a
size which would fit its text, or something?  Or is the viewer/cell-edit
stuff meant to stretch it to the cell size anyway?  Forcing the latter
seems to work, but is that supposed to be necessary?

---   (revision 2095)
+++   (working copy)
@@ -78,6 +78,7 @@
        $entry->set (border_width => $cell->get ('ypad'));
        $entry->set_text ($cell->get ('text'));
+        $entry->set_size_request (-1,$background_area->height);
        $entry->signal_connect (key_press_event => sub {
                my ($widget, $event) = @_;

Attachment: screenshot.png
Description: PNG image

The sigfile one-line movie reviews series:
"Hamlet" (1996) -- much ado about Branagh - see the 4hr cut.

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