diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-05-22 05:04:23 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-05-22 05:04:23 +0000 |
| commit | 9982f8e1370cc1e1d488b885bc749b3793b65609 (patch) | |
| tree | 0d00fa6edb8521b1fdd65a043c10085f6b5ba8c5 /src/ege-select-one-action.cpp | |
| parent | - "Snap nodes or handles" button now also includes smooth nodes (diff) | |
| download | inkscape-9982f8e1370cc1e1d488b885bc749b3793b65609.tar.gz inkscape-9982f8e1370cc1e1d488b885bc749b3793b65609.zip | |
Temporary build fix for not newest gtk versions.
(bzr r9441)
Diffstat (limited to 'src/ege-select-one-action.cpp')
| -rw-r--r-- | src/ege-select-one-action.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ege-select-one-action.cpp b/src/ege-select-one-action.cpp index 199b0cf68..664ffd13d 100644 --- a/src/ege-select-one-action.cpp +++ b/src/ege-select-one-action.cpp @@ -732,7 +732,7 @@ GtkWidget* create_tool_item( GtkAction* action ) if ( act->private_data->sensitiveColumn >= 0 ) { gtk_action_set_sensitive( GTK_ACTION(ract), sens ); } - + gtk_radio_action_set_group( ract, group ); group = gtk_radio_action_get_group( ract ); @@ -931,6 +931,7 @@ void resync_sensitive( EgeSelectOneAction* act ) GSList* group = (GSList*)data; // List is backwards in group as compared to GtkTreeModel, we better do matching. while ( group ) { +#if GTK_CHECK_VERSION(2,16,0) GtkRadioAction* ract = GTK_RADIO_ACTION(group->data); const gchar* label = gtk_action_get_label( GTK_ACTION( ract ) ); @@ -959,6 +960,7 @@ void resync_sensitive( EgeSelectOneAction* act ) } gtk_action_set_sensitive( GTK_ACTION(ract), sens ); +#endif group = g_slist_next(group); } @@ -968,7 +970,7 @@ void resync_sensitive( EgeSelectOneAction* act ) } else if ( GTK_IS_MENU_ITEM(proxies->data) ) { /* Not implemented */ } - + proxies = g_slist_next( proxies ); } |
