cvs: pear /Gtk2_IndexedComboBox package.xml /Gtk2_IndexedComboBox/Gtk2 IndexedComboBox.php
| From: | Christian Weiske | Date: | Mon, 27 Mar 2006 18:37:50 +0000 |
| Subject: | cvs: pear /Gtk2_IndexedComboBox package.xml /Gtk2_IndexedComboBox/Gtk2 IndexedComboBox.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39372@lists.php.net to get a copy of this message | ||
cweiske Mon Mar 27 18:37:50 2006 UTC
Modified files:
/pear/Gtk2_IndexedComboBox/Gtk2 IndexedComboBox.php
/pear/Gtk2_IndexedComboBox package.xml
Log:
Added get_cell_renderer() method
http://cvs.php.net/viewcvs.cgi/pear/Gtk2_IndexedComboBox/Gtk2/IndexedComboBox.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/Gtk2_IndexedComboBox/Gtk2/IndexedComboBox.php
diff -u pear/Gtk2_IndexedComboBox/Gtk2/IndexedComboBox.php:1.1
pear/Gtk2_IndexedComboBox/Gtk2/IndexedComboBox.php:1.2
--- pear/Gtk2_IndexedComboBox/Gtk2/IndexedComboBox.php:1.1 Mon Mar 20 08:22:54 2006
+++ pear/Gtk2_IndexedComboBox/Gtk2/IndexedComboBox.php Mon Mar 27 18:37:50 2006
@@ -17,10 +17,18 @@
* @package Gtk2_IndexedComboBox
* @author Christian Weiske <cweiske@php.net>
* @license LGPL
-* @version CVS: $Id: IndexedComboBox.php,v 1.1 2006/03/20 08:22:54 cweiske Exp $
+* @version CVS: $Id: IndexedComboBox.php,v 1.2 2006/03/27 18:37:50 cweiske Exp $
*/
class Gtk2_IndexedComboBox extends GtkComboBox
{
+ /**
+ * The cell renderer for the text
+ * @var GtkCellRenderer
+ */
+ protected $renderer = null;
+
+
+
public function __construct($arData = null)
{
parent::__construct();
@@ -28,9 +36,9 @@
$this->set_model($model);
//show the second column only
- $renderer = new GtkCellRendererText();
- $this->pack_start($renderer);
- $this->set_attributes($renderer, 'text', 1);
+ $this->renderer = new GtkCellRendererText();
+ $this->pack_start($this->renderer);
+ $this->set_attributes($this->renderer, 'text', 1);
if ($arData !== null) {
$this->set_array($arData);
@@ -98,6 +106,18 @@
/**
+ * Returns the default cell renderer.
+ *
+ * @return GtkCellRenderer The default cell renderer
+ */
+ public function get_cell_renderer()
+ {
+ return $this->renderer;
+ }//public function get_cell_renderer()
+
+
+
+ /**
* Inserts a single key/value pair at a certain position into the list.
*
* @param string $strId The id to append
@@ -245,6 +265,12 @@
+ public function getCellRenderer() {
+ return $this->get_cell_renderer();
+ }
+
+
+
public function insertArray($nPosition, $arData) {
return $this->insert_array($nPosition, $arData);
}
http://cvs.php.net/viewcvs.cgi/pear/Gtk2_IndexedComboBox/package.xml?r1=1.1&r2=1.2&diff_format=u
Index: pear/Gtk2_IndexedComboBox/package.xml
diff -u pear/Gtk2_IndexedComboBox/package.xml:1.1 pear/Gtk2_IndexedComboBox/package.xml:1.2
--- pear/Gtk2_IndexedComboBox/package.xml:1.1 Mon Mar 20 08:22:54 2006
+++ pear/Gtk2_IndexedComboBox/package.xml Mon Mar 27 18:37:50 2006
@@ -24,11 +24,11 @@
<active>yes</active>
</lead>
- <date>2006-03-10</date>
+ <date>2006-03-27</date>
<version>
- <release>0.0.2</release>
- <api>0.0.2</api>
+ <release>0.0.3</release>
+ <api>0.0.3</api>
</version>
<stability>
@@ -38,8 +38,7 @@
<license uri="http://www.gnu.org/licenses/lgpl.html">LGPL</license>
<notes>
- - Added set_active_key
- - Added camelCase method names as PEAR-compatible aliases
+ - Added get_cell_renderer() method
</notes>
<contents>
@@ -57,7 +56,7 @@
<required>
<php>
<min>5.1</min>
- <max>6.0.0</max>
+ <max>5.999.999</max>
</php>
<pearinstaller>
<min>1.4.1</min>
@@ -74,6 +73,22 @@
<changelog>
<release>
<version>
+ <release>0.0.3</release>
+ <api>0.0.3</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <date>2006-03-27</date>
+ <license uri="http://www.gnu.org/licenses/lgpl.html">LGPL</license>
+ <notes>
+ - Added get_cell_renderer() method
+ </notes>
+ </release>
+
+ <release>
+ <version>
<release>0.0.2</release>
<api>0.0.2</api>
</version>