--- ../gtk+-2.11.3/gtk/gtkradiobutton.c	Wed Jun 27 14:02:28 2007
+++ gtkradiobutton.c	Wed Jun 27 14:50:12 2007
@@ -349,6 +349,42 @@ gtk_radio_button_get_group (GtkRadioButt
   return radio_button->group;
 }
 
+/**
+ * gtk_radio_button_get_active:
+ * @group: the radio button group
+ * 
+ * @returns: the active #GtkRadioButton within the group @group
+ **/
+GtkWidget* 
+gtk_radio_button_get_active (GSList *group)
+{
+  GSList *tmp_slist = group;
+  
+  while (tmp_slist)
+    {
+      if (GTK_TOGGLE_BUTTON (tmp_slist->data)->active)
+	return GTK_WIDGET (tmp_slist->data);
+      tmp_slist = tmp_slist->next;
+    }
+
+  return NULL;
+}
+
+/**
+ * gtk_radio_button_get_active_from_widget:
+ * @radio_group_member: widget to get radio group from
+ * 
+ * @returns: the active #GtkRadioButton within the group from
+ *           @radio_group_member
+ **/
+GtkWidget* 
+gtk_radio_button_get_active_from_widget (GtkRadioButton *radio_group_member)
+{
+ 
+  if (radio_group_member)
+    return gtk_radio_button_get_active (radio_group_member->group);
+}
+
 
 static void
 gtk_radio_button_destroy (GtkObject *object)
--- ../gtk+-2.11.3/gtk/gtkradiobutton.h	Wed Jun 27 14:02:28 2007
+++ gtkradiobutton.h	Wed Jun 27 13:47:45 2007
@@ -81,6 +81,8 @@ GtkWidget* gtk_radio_button_new_with_mne
 GSList*    gtk_radio_button_get_group                     (GtkRadioButton *radio_button);
 void       gtk_radio_button_set_group                     (GtkRadioButton *radio_button,
                                                            GSList         *group);
+GtkWidget* gtk_radio_button_get_active                    (GSList         *group);
+GtkWidget* gtk_radio_button_get_active_from_widget        (GtkRadioButton *radio_group_member);
 
 #ifndef GTK_DISABLE_DEPRECATED
 #define gtk_radio_button_group gtk_radio_button_get_group
