summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-02-22 17:29:07 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-02-22 17:29:07 +0000
commitcd3d0107c64d58273d0568f95412d43ea8a316f5 (patch)
treed04070263c01cba0037447270e8933550980abad /gtk/gtkradiobutton.c
parent44c265193227e062c5c2366dafb662f4993976b4 (diff)
downloadgtk+-cd3d0107c64d58273d0568f95412d43ea8a316f5.tar.gz
Emit notify::active here, when changing the value of this property.
2006-02-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active here, when changing the value of this property. (#331651)
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r--gtk/gtkradiobutton.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 6ca752318c..d57bda5f10 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -622,7 +622,7 @@ gtk_radio_button_clicked (GtkButton *button)
{
toggled = TRUE;
toggle_button->active = !toggle_button->active;
-
+
tmp_list = radio_button->group;
while (tmp_list)
{
@@ -650,7 +650,11 @@ gtk_radio_button_clicked (GtkButton *button)
gtk_widget_set_state (GTK_WIDGET (button), new_state);
if (toggled)
- gtk_toggle_button_toggled (toggle_button);
+ {
+ gtk_toggle_button_toggled (toggle_button);
+
+ g_object_notify (G_OBJECT (toggle_button), "active");
+ }
_gtk_button_set_depressed (button, depressed);