From: joncruz Date: Sun, 15 Apr 2007 05:22:28 +0000 (+0000) Subject: Work-around code for GTK+ 2.8 compatibility (gtk+ 2.10 required RSN) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6ed36be9f01f34d8701fde2cde599e369dc1c3fe;p=inkscape.git Work-around code for GTK+ 2.8 compatibility (gtk+ 2.10 required RSN) --- diff --git a/src/ege-select-one-action.cpp b/src/ege-select-one-action.cpp index 9c4ee2689..636da6e4b 100644 --- a/src/ege-select-one-action.cpp +++ b/src/ege-select-one-action.cpp @@ -617,7 +617,19 @@ void resync_active( EgeSelectOneAction* act, gint active ) GtkRadioAction* oneAction = GTK_RADIO_ACTION(group->data); gint hot = gtk_radio_action_get_current_value( oneAction ); if ( hot != active ) { - gtk_radio_action_set_current_value( oneAction, active ); + /*gtk_radio_action_set_current_value( oneAction, active );*/ + gint value = 0; + while ( group ) { + GtkRadioAction* possible = GTK_RADIO_ACTION(group->data); + g_object_get( G_OBJECT(possible), "value", &value, NULL ); + if ( value == active ) { + /* Found the group member to set active */ + gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(possible), TRUE ); + break; + } + + group = g_slist_next(group); + } } } }