[perl-Gtk2] Fix a display bug in the custom cell renderer example
- From: Torsten Schönfeld <tsch src gnome org>
- To: svn-commits-list gnome org
- Subject: [perl-Gtk2] Fix a display bug in the custom cell renderer example
- Date: Sun, 17 May 2009 10:43:55 -0400 (EDT)
commit d1cef7175027121ac91faa1594bfb41c545720b2
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Sun May 17 16:41:53 2009 +0200
Fix a display bug in the custom cell renderer example
Set the height request of the cell editable to the height of the cell to avoid
creating editables which are just one pixel in height.
---
examples/customrenderer.pl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/examples/customrenderer.pl b/examples/customrenderer.pl
index e4d30e2..b6a4548 100644
--- a/examples/customrenderer.pl
+++ b/examples/customrenderer.pl
@@ -92,7 +92,8 @@ sub START_EDITING {
return FALSE;
});
-
+
+ $entry->set (height_request => $cell_area->height);
$entry->show;
return $entry;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]