Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3918135d52936bad0ecc8654eedea12 > files > 265

Falcon-doc-0.9.6.8-1.fc15.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head><meta content="text/html;charset=&amp;quot;utf-8&amp;quot;" http-equiv="Content-type"/><link href="faldoc.css" rel="stylesheet" type="text/css"/><title> - Class GtkCellRendererCombo</title></head><body class="faldoc"><ul class="navi_top"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkCellRendererAccel.html">Previous: Class GtkCellRendererAccel</a></li>
         <li class="next"><a href="gtk_GtkCellRendererPixbuf.html">Next: Class GtkCellRendererPixbuf</a></li>
         <li class="clear"></li>
         </ul><div id="page_body"><h1><span class="toc_number">10.38</span>Class GtkCellRendererCombo</h1><p class="brief">Renders a combobox in a cell </p>
         <pre class="prototype">Class GtkCellRendererCombo</pre>
         <p>GtkCellRendererCombo renders text in a cell like GtkCellRendererText from which it is derived. But while GtkCellRendererText offers a simple entry to edit the text, GtkCellRendererCombo offers a GtkComboBox or GtkComboBoxEntry widget to edit the text. The values to display in the combo box are taken from the tree model specified in the model property. </p>
<p>The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its text-column property. Further properties of the comnbo box can be set in a handler for the editing-started signal. </p>
<p>Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, with GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the GtkTreeView. </p>
<table class="members">
         <tbody><tr class="member_type"><td class="member_type" colspan="2">Methods</td></tr>
               <tr><td><a href="#signal_changed">signal_changed</a></td><td>This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. </td></tr>
               </tbody>
            </table>
         <h2>Methods</h2><h3><a name="signal_changed">signal_changed</a></h3><p class="brief">This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. </p>
         <pre class="prototype">GtkCellRendererCombo.signal_changed()</pre>
         <p>Contrary to GtkComboBox, GtkCellRendererCombo::changed is not emitted for changes made to a selected item in the entry. The argument new_iter corresponds to the newly selected item in the combo box and it is relative to the GtkTreeModel set via the model property on GtkCellRendererCombo. </p>
<p>Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the edited or editing_canceled signal. </p>
</div><ul class="navi_bottom"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkCellRendererAccel.html">Previous: Class GtkCellRendererAccel</a></li>
         <li class="next"><a href="gtk_GtkCellRendererPixbuf.html">Next: Class GtkCellRendererPixbuf</a></li>
         <li class="clear"></li>
         </ul><div class="signature">Made with <a href="faldoc 3.0">http://www.falconpl.org</a></div></body></html>