[perl-Gtk2] Add an explanatory comment to one example
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Add an explanatory comment to one example
- Date: Sun, 11 Apr 2010 14:49:38 +0000 (UTC)
commit 28064c1feb6e24df1aa5377695c3280b5874a4f1
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Sun Apr 11 16:38:36 2010 +0200
Add an explanatory comment to one example
Explain why setting an explicit height request on the cell editable is
necessary.
examples/customrenderer.pl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/examples/customrenderer.pl b/examples/customrenderer.pl
index b6a4548..f9d7237 100644
--- a/examples/customrenderer.pl
+++ b/examples/customrenderer.pl
@@ -93,7 +93,10 @@ sub START_EDITING {
return FALSE;
});
+ # Make sure the entry has the correct height. On some versions of
+ # gtk+, the entry would otherwise be just a few pixels tall.
$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]