From: Jon A. Cruz Date: Sat, 22 May 2010 05:04:23 +0000 (-0700) Subject: Temporary build fix for not newest gtk versions. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=304e8949419974d6bad430f6b4a51233ea301f7a;p=inkscape.git Temporary build fix for not newest gtk versions. --- 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 ); }