Remove gtk_radio_..._join_group methods that were added for 3.0

These versions were added in order to have a bindable version of
_set_group, but with GtkRadioGroup _set_group is already bindable,
so we remove it.
This commit is contained in:
Alexander Larsson
2010-11-05 13:47:54 +01:00
parent 5324e62ab0
commit f03481c4f2
4 changed files with 0 additions and 105 deletions

View File

@@ -455,61 +455,6 @@ gtk_radio_action_set_group (GtkRadioAction *action,
_gtk_radio_group_emit_active_changed (group);
}
/**
* gtk_radio_action_join_group:
* @action: the action object
* @group_source: (allow-none): a radio action object whos group we are
* joining, or %NULL to remove the radio action from its group
*
* Joins a radio action object to the group of another radio action object.
*
* Use this in language bindings instead of the gtk_radio_action_get_group()
* and gtk_radio_action_set_group() methods
*
* A common way to set up a group of radio actions is the following:
* |[
* GtkRadioAction *action;
* GtkRadioAction *last_action;
*
* while (/* more actions to add */)
* {
* action = gtk_radio_action_new (...);
*
* gtk_radio_action_join_group (action, last_action);
* last_action = action;
* }
* ]|
*
* Since: 3.0
*/
void
gtk_radio_action_join_group (GtkRadioAction *action,
GtkRadioAction *group_source)
{
g_return_if_fail (GTK_IS_RADIO_ACTION (action));
g_return_if_fail (group_source == NULL || GTK_IS_RADIO_ACTION (group_source));
if (group_source)
{
GtkRadioGroup *group;
group = gtk_radio_action_get_group (group_source);
if (!group)
{
/* if we are not already part of a group we need to set up a new one
and then get the newly created group */
gtk_radio_action_set_group (group_source, NULL);
group = gtk_radio_action_get_group (group_source);
}
gtk_radio_action_set_group (action, group);
}
else
{
gtk_radio_action_set_group (action, NULL);
}
}
/**
* gtk_radio_action_get_current_value:
* @action: a #GtkRadioAction

View File

@@ -81,8 +81,6 @@ GtkRadioAction *gtk_radio_action_new (const gchar *name,
GtkRadioGroup *gtk_radio_action_get_group (GtkRadioAction *action);
void gtk_radio_action_set_group (GtkRadioAction *action,
GtkRadioGroup *group);
void gtk_radio_action_join_group (GtkRadioAction *action,
GtkRadioAction *group_source);
gint gtk_radio_action_get_current_value (GtkRadioAction *action);
void gtk_radio_action_set_current_value (GtkRadioAction *action,
gint current_value);

View File

@@ -351,52 +351,6 @@ gtk_radio_button_set_group (GtkRadioButton *radio_button,
g_object_unref (radio_button);
}
/**
* gtk_radio_button_join_group:
* @radio_button: the #GtkRadioButton object
* @group_source: (allow-none): a radio button object whos group we are
* joining, or %NULL to remove the radio button from its group
*
* Joins a #GtkRadioButton object to the group of another #GtkRadioButton object
*
* Use this in language bindings instead of the gtk_radio_button_get_group()
* and gtk_radio_button_set_group() methods
*
* A common way to set up a group of radio buttons is the following:
* |[
* GtkRadioButton *radio_button;
* GtkRadioButton *last_button;
*
* while (/* more buttons to add */)
* {
* radio_button = gtk_radio_button_new (...);
*
* gtk_radio_button_join_group (radio_button, last_button);
* last_button = radio_button;
* }
* ]|
*
* Since: 3.0
*/
void
gtk_radio_button_join_group (GtkRadioButton *radio_button,
GtkRadioButton *group_source)
{
g_return_if_fail (GTK_IS_RADIO_BUTTON (radio_button));
g_return_if_fail (group_source == NULL || GTK_IS_RADIO_BUTTON (group_source));
if (group_source)
{
GtkRadioGroup *group;
group = gtk_radio_button_get_group (group_source);
gtk_radio_button_set_group (radio_button, group);
}
else
{
gtk_radio_button_set_group (radio_button, NULL);
}
}
/**
* gtk_radio_button_new:
* @group: an existing radio button group, or %NULL if you are creating a new group.

View File

@@ -90,8 +90,6 @@ GtkWidget* gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *r
GtkRadioGroup *gtk_radio_button_get_group (GtkRadioButton *radio_button);
void gtk_radio_button_set_group (GtkRadioButton *radio_button,
GtkRadioGroup *group);
void gtk_radio_button_join_group (GtkRadioButton *radio_button,
GtkRadioButton *group_source);
G_END_DECLS