|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkRadioButton</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="prev" href="GtkCheckButton.html" title="GtkCheckButton">
<link rel="next" href="GtkToggleButton.html" title="GtkToggleButton">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and
GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkCheckButton.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ButtonWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkToggleButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2914847" class="shortcut">Top</a>
 | 
<a href="#id2915297" class="shortcut">Description</a>
 | 
<a href="#id2915105" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id2915190" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id2915213" class="shortcut">Properties</a>
 | 
<a href="#id2915247" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkRadioButton"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2914847"></a><span class="refentrytitle">GtkRadioButton</span>
</h2>
<p>GtkRadioButton — A choice from multiple check buttons</p>
</td>
<td valign="top" align="right"><img src="radio-group.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkRadioButton.html#GtkRadioButton-struct">GtkRadioButton</a>;
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkRadioButton.html#gtk-radio-button-new">gtk_radio_button_new</a> (<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkRadioButton.html#gtk-radio-button-new-from-widget">gtk_radio_button_new_from_widget</a>
(<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *group);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkRadioButton.html#gtk-radio-button-new-with-label">gtk_radio_button_new_with_label</a> (<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkRadioButton.html#gtk-radio-button-new-with-label-from-widget">gtk_radio_button_new_with_label_from_widget</a>
(<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkRadioButton.html#gtk-radio-button-new-with-mnemonic">gtk_radio_button_new_with_mnemonic</a>
(<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkRadioButton.html#gtk-radio-button-new-with-mnemonic-from-widget">gtk_radio_button_new_with_mnemonic_from_widget</a>
(<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);
#define <a href="GtkRadioButton.html#gtk-radio-button-group">gtk_radio_button_group</a>
void <a href="GtkRadioButton.html#gtk-radio-button-set-group">gtk_radio_button_set_group</a> (<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_button,
<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group);
<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a>* <a href="GtkRadioButton.html#gtk-radio-button-get-group">gtk_radio_button_get_group</a> (<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_button);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2915105"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----<a href="GtkBin.html" title="GtkBin">GtkBin</a>
+----<a href="GtkButton.html" title="GtkButton">GtkButton</a>
+----<a href="GtkToggleButton.html" title="GtkToggleButton">GtkToggleButton</a>
+----<a href="GtkCheckButton.html" title="GtkCheckButton">GtkCheckButton</a>
+----GtkRadioButton
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2915190"></a><h2>Implemented Interfaces</h2>
<p>
GtkRadioButton implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2915213"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkRadioButton.html#GtkRadioButton--group">group</a>" <a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> : Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2915247"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkRadioButton.html#GtkRadioButton-group-changed">group-changed</a>"
void user_function (<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *style,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2915297"></a><h2>Description</h2>
<p>
A single radio button performs the same basic function as a <a href="GtkCheckButton.html" title="GtkCheckButton"><span class="type">GtkCheckButton</span></a>,
as its position in the object hierarchy reflects. It is only when multiple
radio buttons are grouped together that they become a different user
interface component in their own right.</p>
<p>
Every radio button is a member of some group of radio buttons. When one is selected, all other
radio buttons in the same group are deselected. A <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> is one way
of giving the user a choice from many options.
</p>
<p>
Radio button widgets are created with <a href="GtkRadioButton.html#gtk-radio-button-new"><code class="function">gtk_radio_button_new()</code></a>, passing NULL
as the argument if this is the first radio button in a group. In subsequent
calls, the group you wish to add this button to should be passed as an
argument. Optionally, <a href="GtkRadioButton.html#gtk-radio-button-new-with-label"><code class="function">gtk_radio_button_new_with_label()</code></a> can be used if you
want a text label on the radio button.
</p>
<p>
Alternatively, when adding widgets to an existing group of radio buttons,
use <a href="GtkRadioButton.html#gtk-radio-button-new-from-widget"><code class="function">gtk_radio_button_new_from_widget()</code></a> with a <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> that already
has a group assigned to it. The convenience function
<a href="GtkRadioButton.html#gtk-radio-button-new-with-label-from-widget"><code class="function">gtk_radio_button_new_with_label_from_widget()</code></a> is also provided.
</p>
<p>
To retrieve the group a <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> is assigned to, use
<a href="GtkRadioButton.html#gtk-radio-button-get-group"><code class="function">gtk_radio_button_get_group()</code></a>.
</p>
<p>
To remove a <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> from one group and make it part of a new one, use <a href="GtkRadioButton.html#gtk-radio-button-set-group"><code class="function">gtk_radio_button_set_group()</code></a>.
</p>
<p>
The group list does not need to be freed, as each <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> will remove
itself and its list item when it is destroyed.
</p>
<p>
</p>
<div class="example">
<a name="id2915469"></a><p class="title"><b>Example 1. How to create a group of two radio buttons.</b></p>
<pre class="programlisting">
void create_radio_buttons (void) {
GtkWidget *window, *radio1, *radio2, *box, *entry;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
box = gtk_vbox_new (TRUE, 2);
/* Create a radio button with a GtkEntry widget */
radio1 = gtk_radio_button_new (NULL);
entry = gtk_entry_new ();
gtk_container_add (GTK_CONTAINER (radio1), entry);
/* Create a radio button with a label */
radio2 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (radio1),
"I'm the second radio button.");
/* Pack them into a box, then show all the widgets */
gtk_box_pack_start (GTK_BOX (box), radio1, TRUE, TRUE, 2);
gtk_box_pack_start (GTK_BOX (box), radio2, TRUE, TRUE, 2);
gtk_container_add (GTK_CONTAINER (window), box);
gtk_widget_show_all (window);
return;
}
</pre>
</div>
<p>
</p>
<p>
When an unselected button in the group is clicked the clicked button
receives the "toggled" signal, as does the previously selected button.
Inside the "toggled" handler, <a href="GtkToggleButton.html#gtk-toggle-button-get-active"><code class="function">gtk_toggle_button_get_active()</code></a> can be used
to determine if the button has been selected or deselected.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2914719"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2914730"></a><h3>
<a name="GtkRadioButton-struct"></a>GtkRadioButton</h3>
<a class="indexterm" name="id2914743"></a><pre class="programlisting">typedef struct _GtkRadioButton GtkRadioButton;</pre>
<p>
Contains only private data that should be read and manipulated using the
functions below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2914760"></a><h3>
<a name="gtk-radio-button-new"></a>gtk_radio_button_new ()</h3>
<a class="indexterm" name="id2914773"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_radio_button_new (<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group);</pre>
<p>
Creates a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>. To be of any practical value, a widget should
then be packed into the radio button.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td>an existing radio button group, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if you are creating a new group.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>a new radio button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915787"></a><h3>
<a name="gtk-radio-button-new-from-widget"></a>gtk_radio_button_new_from_widget ()</h3>
<a class="indexterm" name="id2915800"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_radio_button_new_from_widget
(<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *group);</pre>
<p>
Creates a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>, adding it to the same group as <em class="parameter"><code>group</code></em>. As
with <a href="GtkRadioButton.html#gtk-radio-button-new"><code class="function">gtk_radio_button_new()</code></a>, a widget should be packed into the radio button.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td>an existing <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>a new radio button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915894"></a><h3>
<a name="gtk-radio-button-new-with-label"></a>gtk_radio_button_new_with_label ()</h3>
<a class="indexterm" name="id2915907"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_radio_button_new_with_label (<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);</pre>
<p>
Creates a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> with a text label.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td>an existing radio button group, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if you are creating a new
group.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>label</code></em> :</span></td>
<td>the text label to display next to the radio button.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>a new radio button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916006"></a><h3>
<a name="gtk-radio-button-new-with-label-from-widget"></a>gtk_radio_button_new_with_label_from_widget ()</h3>
<a class="indexterm" name="id2916022"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_radio_button_new_with_label_from_widget
(<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);</pre>
<p>
Creates a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> with a text label, adding it to the same group
as <em class="parameter"><code>group</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td>an existing <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>label</code></em> :</span></td>
<td>a text string to display next to the radio button.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>a new radio button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916125"></a><h3>
<a name="gtk-radio-button-new-with-mnemonic"></a>gtk_radio_button_new_with_mnemonic ()</h3>
<a class="indexterm" name="id2916139"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_radio_button_new_with_mnemonic
(<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);</pre>
<p>
Creates a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> containing a label, adding it to the same
group as <em class="parameter"><code>group</code></em>. The label will be created using
<a href="GtkLabel.html#gtk-label-new-with-mnemonic"><code class="function">gtk_label_new_with_mnemonic()</code></a>, so underscores in <em class="parameter"><code>label</code></em> indicate the
mnemonic for the button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td> the radio button group
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>label</code></em> :</span></td>
<td> the text of the button, with an underscore in front of the
mnemonic character
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916264"></a><h3>
<a name="gtk-radio-button-new-with-mnemonic-from-widget"></a>gtk_radio_button_new_with_mnemonic_from_widget ()</h3>
<a class="indexterm" name="id2916279"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_radio_button_new_with_mnemonic_from_widget
(<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *group,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *label);</pre>
<p>
Creates a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> containing a label. The label
will be created using <a href="GtkLabel.html#gtk-label-new-with-mnemonic"><code class="function">gtk_label_new_with_mnemonic()</code></a>, so underscores
in <em class="parameter"><code>label</code></em> indicate the mnemonic for the button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td> widget to get radio group from
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>label</code></em> :</span></td>
<td> the text of the button, with an underscore in front of the
mnemonic character
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916400"></a><h3>
<a name="gtk-radio-button-group"></a>gtk_radio_button_group</h3>
<a class="indexterm" name="id2916415"></a><pre class="programlisting">#define gtk_radio_button_group gtk_radio_button_get_group
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_radio_button_group</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Deprecated compatibility macro. Use <a href="GtkRadioButton.html#gtk-radio-button-get-group"><code class="function">gtk_radio_button_get_group()</code></a> instead.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916456"></a><h3>
<a name="gtk-radio-button-set-group"></a>gtk_radio_button_set_group ()</h3>
<a class="indexterm" name="id2916469"></a><pre class="programlisting">void gtk_radio_button_set_group (<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_button,
<a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *group);</pre>
<p>
Sets a <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>'s group. It should be noted that this does not change
the layout of your interface in any way, so if you are changing the group,
it is likely you will need to re-arrange the user interface to reflect these
changes.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>radio_button</code></em> :</span></td>
<td>a <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td>an existing radio button group, such as one returned from
<a href="GtkRadioButton.html#gtk-radio-button-get-group"><code class="function">gtk_radio_button_get_group()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916570"></a><h3>
<a name="gtk-radio-button-get-group"></a>gtk_radio_button_get_group ()</h3>
<a class="indexterm" name="id2916582"></a><pre class="programlisting"><a
href="../glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a>* gtk_radio_button_get_group (<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_button);</pre>
<p>
Retrieves the group assigned to a radio button.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>radio_button</code></em> :</span></td>
<td>a <a href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>a linked list containing all the radio buttons in the same group
as <em class="parameter"><code>radio_button</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2916656"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id2916667"></a><h3>
<a name="GtkRadioButton--group"></a>The "<code class="literal">group</code>" property</h3>
<a class="indexterm" name="id2916683"></a><pre class="programlisting"> "group" <a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> : Write</pre>
<p>
Sets a new group for a radio button.
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2916707"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2916718"></a><h3>
<a name="GtkRadioButton-group-changed"></a>The "group-changed" signal</h3>
<a class="indexterm" name="id2916728"></a><pre class="programlisting">void user_function (<a href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *style,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first</pre>
<p>
Emitted when the group of radio buttons that a radio button belongs
to changes. This is emitted when a radio button switches from
being alone to being part of a group of 2 or more buttons, or
vice-versa, and when a buttton is moved from one group of 2 or
more buttons to a different one, but not when the composition
of the group that a button belongs to changes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>style</code></em> :</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2916813"></a><h2>See Also</h2>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><a href="GtkOptionMenu.html" title="GtkOptionMenu"><span class="type">GtkOptionMenu</span></a></span></td>
<td><p>Another way of offering the user a single choice from
many.</p></td>
</tr></tbody>
</table></div>
<p>
</p>
</div>
</div>
</body>
</html>