From 10638fb14a14104ab9e4905d393178c36c9ad3b1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 11 Sep 2009 14:34:36 +0000 Subject: [PATCH] (trunk gtk) fix clang build issue reported by Tronic --- gtk/details.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk/details.c b/gtk/details.c index 02e26e3d6..7fff00219 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -1489,13 +1489,18 @@ peer_page_new( struct DetailsImpl * di ) gtk_tree_sortable_set_sort_column_id( GTK_TREE_SORTABLE( m ), PEER_COL_PROGRESS, GTK_SORT_DESCENDING ); +#if GTK_CHECK_VERSION( 2,12,0 ) v = GTK_WIDGET( g_object_new( GTK_TYPE_TREE_VIEW, "model", m, "rules-hint", TRUE, -#if GTK_CHECK_VERSION( 2,12,0 ) "has-tooltip", TRUE, -#endif NULL ) ); +#else + v = GTK_WIDGET( g_object_new( GTK_TYPE_TREE_VIEW, + "model", m, + "rules-hint", TRUE, + NULL ) ); +#endif #if GTK_CHECK_VERSION( 2,12,0 ) g_signal_connect( v, "query-tooltip",