<refentry id="GnomeDbDataCellRendererBoolean">
<refmeta>
<refentrytitle>GnomeDbDataCellRendererBoolean</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBGNOMEDB-4.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GnomeDbDataCellRendererBoolean</refname><refpurpose>Cell renderer for booleans</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



struct      <link linkend="GnomeDbDataCellRendererBoolean-struct">GnomeDbDataCellRendererBoolean</link>;
struct      <link linkend="GnomeDbDataCellRendererBooleanClass">GnomeDbDataCellRendererBooleanClass</link>;
struct      <link linkend="GnomeDbDataCellRendererBooleanPrivate">GnomeDbDataCellRendererBooleanPrivate</link>;
<link linkend="GtkCellRenderer">GtkCellRenderer</link>* <link linkend="gnome-db-data-cell-renderer-boolean-new">gnome_db_data_cell_renderer_boolean_new</link>
                                            (<link linkend="GdaDataHandler">GdaDataHandler</link> *dh,
                                             <link linkend="GType">GType</link> type);

</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkCellRenderer">GtkCellRenderer</link>
                     +----<link linkend="GtkCellRendererToggle">GtkCellRendererToggle</link>
                           +----GnomeDbDataCellRendererBoolean
</synopsis>

</refsect1>





<refsect1>
<title>Properties</title>
<synopsis>

  &quot;<link linkend="GnomeDbDataCellRendererBoolean--data-handler">data-handler</link>&quot;         <link linkend="GdaDataHandler">GdaDataHandler</link>       : Write / Construct Only
  &quot;<link linkend="GnomeDbDataCellRendererBoolean--editable">editable</link>&quot;             <link linkend="gboolean">gboolean</link>             : Read / Write
  &quot;<link linkend="GnomeDbDataCellRendererBoolean--to-be-deleted">to-be-deleted</link>&quot;        <link linkend="gboolean">gboolean</link>             : Write
  &quot;<link linkend="GnomeDbDataCellRendererBoolean--type">type</link>&quot;                 <link linkend="GType">GType</link>                : Write / Construct Only
  &quot;<link linkend="GnomeDbDataCellRendererBoolean--value">value</link>&quot;                <link linkend="GValue">GValue</link>               : Read / Write
  &quot;<link linkend="GnomeDbDataCellRendererBoolean--value-attributes">value-attributes</link>&quot;     <link linkend="GdaValueAttribute">GdaValueAttribute</link>    : Read / Write
</synopsis>
</refsect1>

<refsect1>
<title>Signal Prototypes</title>
<synopsis>

&quot;<link linkend="GnomeDbDataCellRendererBoolean-changed">changed</link>&quot;   <link linkend="void">void</link>        user_function      (<link linkend="GnomeDbDataCellRendererBoolean">GnomeDbDataCellRendererBoolean</link> *dbdatacellrendererboolean,
                                            <link linkend="gchar">gchar</link> *arg1,
                                            <link linkend="GValue">GValue</link> *arg2,
                                            <link linkend="gpointer">gpointer</link> user_data);
</synopsis>
</refsect1>


<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GnomeDbDataCellRendererBoolean-struct"/>struct GnomeDbDataCellRendererBoolean</title>
<indexterm><primary>GnomeDbDataCellRendererBoolean</primary></indexterm><programlisting>struct GnomeDbDataCellRendererBoolean;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeDbDataCellRendererBooleanClass"/>struct GnomeDbDataCellRendererBooleanClass</title>
<indexterm><primary>GnomeDbDataCellRendererBooleanClass</primary></indexterm><programlisting>struct GnomeDbDataCellRendererBooleanClass {

	GtkCellRendererToggleClass  parent_class;
	
	void (* changed) (GnomeDbDataCellRendererBoolean *cell_renderer,
			  const gchar               *path,
			  const GValue            *new_value);
};
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeDbDataCellRendererBooleanPrivate"/>struct GnomeDbDataCellRendererBooleanPrivate</title>
<indexterm><primary>GnomeDbDataCellRendererBooleanPrivate</primary></indexterm><programlisting>struct GnomeDbDataCellRendererBooleanPrivate;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-db-data-cell-renderer-boolean-new"/>gnome_db_data_cell_renderer_boolean_new ()</title>
<indexterm><primary>gnome_db_data_cell_renderer_boolean_new</primary></indexterm><programlisting><link linkend="GtkCellRenderer">GtkCellRenderer</link>* gnome_db_data_cell_renderer_boolean_new
                                            (<link linkend="GdaDataHandler">GdaDataHandler</link> *dh,
                                             <link linkend="GType">GType</link> type);</programlisting>
<para>
Creates a new <link linkend="GnomeDbDataCellRendererBoolean"><type>GnomeDbDataCellRendererBoolean</type></link>. Adjust rendering
parameters using object properties. Object properties can be set
globally (with <link linkend="g-object-set"><function>g_object_set()</function></link>). Also, with <link linkend="GtkTreeViewColumn"><type>GtkTreeViewColumn</type></link>, you
can bind a property to a value in a <link linkend="GtkTreeModel"><type>GtkTreeModel</type></link>. For example, you
can bind the "active" property on the cell renderer to a boolean value
in the model, thus causing the check button to reflect the state of
the model.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>dh</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GdaDataHandler"><type>GdaDataHandler</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the new cell renderer
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1>
<title>Properties</title>
<variablelist>
<varlistentry><term><anchor id="GnomeDbDataCellRendererBoolean--data-handler"/>&quot;<literal>data-handler</literal>&quot; (<link linkend="GdaDataHandler">GdaDataHandler</link> : Write / Construct Only)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbDataCellRendererBoolean--editable"/>&quot;<literal>editable</literal>&quot; (<link linkend="gboolean">gboolean</link> : Read / Write)</term>
<listitem>
<para>The toggle button can be activated.</para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbDataCellRendererBoolean--to-be-deleted"/>&quot;<literal>to-be-deleted</literal>&quot; (<link linkend="gboolean">gboolean</link> : Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbDataCellRendererBoolean--type"/>&quot;<literal>type</literal>&quot; (<link linkend="GType">GType</link> : Write / Construct Only)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbDataCellRendererBoolean--value"/>&quot;<literal>value</literal>&quot; (<link linkend="GValue">GValue</link> : Read / Write)</term>
<listitem>
<para>GValue to render.</para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbDataCellRendererBoolean--value-attributes"/>&quot;<literal>value-attributes</literal>&quot; (<link linkend="GdaValueAttribute">GdaValueAttribute</link> : Read / Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>

</variablelist>
</refsect1>

<refsect1>
<title>Signals</title>
<refsect2><title><anchor id="GnomeDbDataCellRendererBoolean-changed"/>The &quot;changed&quot; signal</title>
<programlisting><link linkend="void">void</link>        user_function                  (<link linkend="GnomeDbDataCellRendererBoolean">GnomeDbDataCellRendererBoolean</link> *dbdatacellrendererboolean,
                                            <link linkend="gchar">gchar</link> *arg1,
                                            <link linkend="GValue">GValue</link> *arg2,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>dbdatacellrendererboolean</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg1</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg2</parameter>&nbsp;:</term>
<listitem><simpara>

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>
