From ba2d4f484971795c436398112728832f93185243 Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 29 Apr 2006 13:24:28 +0000 Subject: [PATCH] fix height for older libs git-svn-id: http://ltt.polymtl.ca/svn@1775 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 2 +- ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h | 4 ++-- ltt/branches/poly/lttv/modules/gui/detailedevents/events.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index c8d98c61..89acf83f 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -23,7 +23,7 @@ AC_PREREQ(2.57) AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) #AC_WITH_LTDL # not needed ? -AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.37-28042006) +AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.38-29042006) AM_CONFIG_HEADER(config.h) AM_PROG_LIBTOOL diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index a4465edc..2dfd3717 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -183,13 +183,13 @@ static inline gint get_cell_height(GtkTreeView *TreeView) gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &height); +#if GTK_CHECK_VERSION(2.4.15) gint vertical_separator; gtk_widget_style_get (GTK_WIDGET (TreeView), "vertical-separator", &vertical_separator, NULL); - height += vertical_separator; - +#endif return height; } diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 63a1bbf8..b5af37d0 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -1181,14 +1181,14 @@ static __inline gint get_cell_height(GtkTreeView *TreeView) gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &height); - +#if GTK_CHECK_VERSION(2.4.15) gint vertical_separator; gtk_widget_style_get (GTK_WIDGET (TreeView), "vertical-separator", &vertical_separator, NULL); height += vertical_separator; - +#endif return height; } -- 2.34.1