New upstream version 3.23.0
This commit is contained in:
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GtkCellRenderer: GTK+ 3 Reference Manual</title>
|
||||
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
||||
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
||||
<link rel="up" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
|
||||
<link rel="prev" href="GtkCellAreaContext.html" title="GtkCellAreaContext">
|
||||
<link rel="next" href="GtkCellEditable.html" title="GtkCellEditable">
|
||||
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
||||
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -430,7 +430,8 @@ provide active user interface elements. A cell renderer can be
|
||||
“activatable” like <a class="link" href="GtkCellRendererToggle.html" title="GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a>,
|
||||
which toggles when it gets activated by a mouse click, or it can be
|
||||
“editable” like <a class="link" href="GtkCellRendererText.html" title="GtkCellRendererText"><span class="type">GtkCellRendererText</span></a>, which
|
||||
allows the user to edit the text using a <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>.
|
||||
allows the user to edit the text using a widget implementing the
|
||||
<a class="link" href="GtkCellEditable.html" title="GtkCellEditable"><span class="type">GtkCellEditable</span></a> interface, e.g. <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>.
|
||||
To make a cell renderer activatable or editable, you have to
|
||||
implement the <a class="link" href="GtkCellRenderer.html#GtkCellRendererClass.activate"><span class="type">GtkCellRendererClass.activate</span></a> or
|
||||
<a class="link" href="GtkCellRenderer.html#GtkCellRendererClass.start-editing"><span class="type">GtkCellRendererClass.start_editing</span></a> virtual functions, respectively.</p>
|
||||
@ -522,7 +523,7 @@ the appropriate edit and focus rectangle.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>aligned_area</p></td>
|
||||
<td class="parameter_description"><p>the return location for the space inside <em class="parameter"><code>cell_area</code></em>
|
||||
<td class="parameter_description"><p> the return location for the space inside <em class="parameter"><code>cell_area</code></em>
|
||||
that would acually be used to render. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||||
</tr>
|
||||
@ -578,29 +579,29 @@ in <em class="parameter"><code>x_offset</code></em>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>cell_area</p></td>
|
||||
<td class="parameter_description"><p>The area a cell will be allocated, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> The area a cell will be allocated, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>x_offset</p></td>
|
||||
<td class="parameter_description"><p>location to return x offset of cell relative to <em class="parameter"><code>cell_area</code></em>
|
||||
<td class="parameter_description"><p> location to return x offset of cell relative to <em class="parameter"><code>cell_area</code></em>
|
||||
, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>y_offset</p></td>
|
||||
<td class="parameter_description"><p>location to return y offset of cell relative to <em class="parameter"><code>cell_area</code></em>
|
||||
<td class="parameter_description"><p> location to return y offset of cell relative to <em class="parameter"><code>cell_area</code></em>
|
||||
, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>width</p></td>
|
||||
<td class="parameter_description"><p>location to return width needed to render a cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to return width needed to render a cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>height</p></td>
|
||||
<td class="parameter_description"><p>location to return height needed to render a cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to return height needed to render a cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -753,7 +754,9 @@ gtk_cell_renderer_start_editing (<em class="parameter"><code><a class="link" hre
|
||||
<em class="parameter"><code>const <span class="type">GdkRectangle</span> *background_area</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRectangle</span> *cell_area</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkCellRenderer.html#GtkCellRendererState" title="enum GtkCellRendererState"><span class="type">GtkCellRendererState</span></a> flags</code></em>);</pre>
|
||||
<p>Passes an activate event to the cell renderer for possible processing.</p>
|
||||
<p>Starts editing the contents of this <em class="parameter"><code>cell</code></em>
|
||||
, through a new <a class="link" href="GtkCellEditable.html" title="GtkCellEditable"><span class="type">GtkCellEditable</span></a>
|
||||
widget created by the <a class="link" href="GtkCellRenderer.html#GtkCellRendererClass.start-editing"><span class="type">GtkCellRendererClass.start_editing</span></a> virtual function.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-cell-renderer-start-editing.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -770,7 +773,7 @@ gtk_cell_renderer_start_editing (<em class="parameter"><code><a class="link" hre
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>event</p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkEvent</span>. </p></td>
|
||||
<td class="parameter_description"><p> a <span class="type">GdkEvent</span>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -804,7 +807,9 @@ e.g. for <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-cell-renderer-start-editing.returns"></a><h4>Returns</h4>
|
||||
<p>A new <a class="link" href="GtkCellEditable.html" title="GtkCellEditable"><span class="type">GtkCellEditable</span></a>, or <code class="literal">NULL</code>. </p>
|
||||
<p> A new <a class="link" href="GtkCellEditable.html" title="GtkCellEditable"><span class="type">GtkCellEditable</span></a> for editing this
|
||||
<em class="parameter"><code>cell</code></em>
|
||||
, or <code class="literal">NULL</code> if editing is not possible. </p>
|
||||
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
</div>
|
||||
@ -872,12 +877,12 @@ gtk_cell_renderer_get_fixed_size (<em class="parameter"><code><a class="link" hr
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>width</p></td>
|
||||
<td class="parameter_description"><p>location to fill in with the fixed width of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to fill in with the fixed width of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>height</p></td>
|
||||
<td class="parameter_description"><p>location to fill in with the fixed height of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to fill in with the fixed height of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1063,12 +1068,12 @@ gtk_cell_renderer_get_alignment (<em class="parameter"><code><a class="link" hre
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>xalign</p></td>
|
||||
<td class="parameter_description"><p>location to fill in with the x alignment of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to fill in with the x alignment of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>yalign</p></td>
|
||||
<td class="parameter_description"><p>location to fill in with the y alignment of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to fill in with the y alignment of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1140,12 +1145,12 @@ gtk_cell_renderer_get_padding (<em class="parameter"><code><a class="link" href=
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>xpad</p></td>
|
||||
<td class="parameter_description"><p>location to fill in with the x padding of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to fill in with the x padding of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>ypad</p></td>
|
||||
<td class="parameter_description"><p>location to fill in with the y padding of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to fill in with the y padding of the cell, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1211,12 +1216,12 @@ the given <a class="link" href="GtkCellRenderer.html#GtkCellRendererState" title
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>cell</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> a <a class="link" href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>widget</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1293,12 +1298,12 @@ gtk_cell_renderer_get_preferred_height
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>minimum_size</p></td>
|
||||
<td class="parameter_description"><p>location to store the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to store the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>natural_size</p></td>
|
||||
<td class="parameter_description"><p>location to store the natural size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to store the natural size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1346,12 +1351,12 @@ gtk_cell_renderer_get_preferred_height_for_width
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>minimum_height</p></td>
|
||||
<td class="parameter_description"><p>location for storing the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location for storing the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>natural_height</p></td>
|
||||
<td class="parameter_description"><p>location for storing the preferred size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location for storing the preferred size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1390,12 +1395,12 @@ into account the widget’s preference for height-for-width management.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>minimum_size</p></td>
|
||||
<td class="parameter_description"><p>location for storing the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location for storing the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>natural_size</p></td>
|
||||
<td class="parameter_description"><p>location for storing the natural size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location for storing the natural size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1434,12 +1439,12 @@ gtk_cell_renderer_get_preferred_width (<em class="parameter"><code><a class="lin
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>minimum_size</p></td>
|
||||
<td class="parameter_description"><p>location to store the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to store the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>natural_size</p></td>
|
||||
<td class="parameter_description"><p>location to store the natural size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to store the natural size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1487,12 +1492,12 @@ gtk_cell_renderer_get_preferred_width_for_height
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>minimum_width</p></td>
|
||||
<td class="parameter_description"><p>location for storing the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location for storing the minimum size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>natural_width</p></td>
|
||||
<td class="parameter_description"><p>location for storing the preferred size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location for storing the preferred size, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1970,52 +1975,33 @@ The intended use of this signal is to do special setup
|
||||
on <em class="parameter"><code>editable</code></em>
|
||||
, e.g. adding a <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a> or setting
|
||||
up additional columns in a <a class="link" href="GtkComboBox.html" title="GtkComboBox"><span class="type">GtkComboBox</span></a>.</p>
|
||||
<p>See <a class="link" href="GtkCellEditable.html#gtk-cell-editable-start-editing" title="gtk_cell_editable_start_editing ()"><code class="function">gtk_cell_editable_start_editing()</code></a> for information on the lifecycle of
|
||||
the <em class="parameter"><code>editable</code></em>
|
||||
and a way to do setup that doesn’t depend on the <em class="parameter"><code>renderer</code></em>
|
||||
.</p>
|
||||
<p>Note that GTK+ doesn't guarantee that cell renderers will
|
||||
continue to use the same kind of widget for editing in future
|
||||
releases, therefore you should check the type of <em class="parameter"><code>editable</code></em>
|
||||
|
||||
before doing any specific setup, as in the following example:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
||||
<span class="function">text_editing_started</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkCellRenderer</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cell</span><span class="symbol">,</span>
|
||||
<span class="normal"> </span><span class="usertype">GtkCellEditable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">editable</span><span class="symbol">,</span>
|
||||
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">path</span><span class="symbol">,</span>
|
||||
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
||||
<span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_IS_ENTRY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">editable</span><span class="symbol">))</span>
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
static void
|
||||
text_editing_started (GtkCellRenderer *cell,
|
||||
GtkCellEditable *editable,
|
||||
const gchar *path,
|
||||
gpointer data)
|
||||
{
|
||||
if (GTK_IS_ENTRY (editable))
|
||||
|
||||
<span class="normal"> </span><span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="usertype">GtkEntry</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">entry </span><span class="symbol">=</span><span class="normal"> </span><span class="function">GTK_ENTRY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">editable</span><span class="symbol">);</span>
|
||||
{
|
||||
GtkEntry *entry = GTK_ENTRY (editable);
|
||||
|
||||
<span class="normal"> </span><span class="comment">// ... create a GtkEntryCompletion</span>
|
||||
|
||||
<span class="normal"> </span><span class="function"><a href="GtkEntry.html#gtk-entry-set-completion">gtk_entry_set_completion</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">entry</span><span class="symbol">,</span><span class="normal"> completion</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="cbracket">}</span>
|
||||
<span class="cbracket">}</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
// ... create a GtkEntryCompletion
|
||||
|
||||
gtk_entry_set_completion (entry, completion);
|
||||
}
|
||||
}
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<div class="refsect3">
|
||||
<a name="GtkCellRenderer-editing-started.parameters"></a><h4>Parameters</h4>
|
||||
@ -2055,10 +2041,10 @@ before doing any specific setup, as in the following example:</p>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkCellRenderer.see-also"></a><h2>See Also</h2>
|
||||
<p><a class="link" href="GtkCellRendererText.html" title="GtkCellRendererText"><span class="type">GtkCellRendererText</span></a>, <a class="link" href="GtkCellRendererPixbuf.html" title="GtkCellRendererPixbuf"><span class="type">GtkCellRendererPixbuf</span></a>, <a class="link" href="GtkCellRendererToggle.html" title="GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a></p>
|
||||
<p><a class="link" href="GtkCellEditable.html" title="GtkCellEditable"><span class="type">GtkCellEditable</span></a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<hr>Generated by GTK-Doc V1.27</div>
|
||||
<hr>Generated by GTK-Doc V1.25</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user