avoid recursive loops by only setting the UI if we're active.

Sun Jan  6 02:52:59 2002  Jonathan Blandford  <jrb@redhat.com>

	* gconf-property-editor.c (peditor_select_radio_widget_changed):
	avoid recursive loops by only setting the UI if we're active.
This commit is contained in:
Jonathan Blandford 2002-01-06 07:55:41 +00:00 committed by Jonathan Blandford
parent 1bd61a6bdb
commit 63c1b1daaf
2 changed files with 7 additions and 0 deletions

View file

@ -692,6 +692,8 @@ peditor_select_radio_widget_changed (GConfPropertyEditor *peditor,
GConfValue *value, *value_wid;
if (!peditor->p->inited) return;
if (!tb->active) return;
value_wid = gconf_value_new (GCONF_VALUE_INT);
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (peditor->p->ui_control));
gconf_value_set_int (value_wid, g_slist_index (group, tb));