diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-04-15 05:22:28 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-04-15 05:22:28 +0000 |
| commit | f4659fc31a162f1c09be2597b8717bd01a534f43 (patch) | |
| tree | f2ed9fe133f89537e3e9b4a4b9610a7b9e6795da /src/ege-select-one-action.cpp | |
| parent | increment hatch_spacing by hatch_spacing_step when keep_selected is off; use ... (diff) | |
| download | inkscape-f4659fc31a162f1c09be2597b8717bd01a534f43.tar.gz inkscape-f4659fc31a162f1c09be2597b8717bd01a534f43.zip | |
Work-around code for GTK+ 2.8 compatibility (gtk+ 2.10 required RSN)
(bzr r2896)
Diffstat (limited to 'src/ege-select-one-action.cpp')
| -rw-r--r-- | src/ege-select-one-action.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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); + } } } } |
