LinuxTraceToolkit ChangeLog
+06/02/2006 LTTV 0.8.11
+ Fix GtkTreeView using "vertical-separator" style property.
06/02/2006 LTTV 0.8.10
Now handle correctly events with a 0xFFFF size (dynamically).
Make lttd multithreaded.
AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.10-06022006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.11-06022006)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
#endif
#include <gtk/gtk.h>
+#include <gdk/gdk.h>
#include <glib.h>
#include <string.h>
#include <stdlib.h>
renderer = gtk_cell_renderer_text_new ();
process_list->renderer = renderer;
+ gint vertical_separator;
+ gtk_widget_style_get (GTK_WIDGET (process_list->process_list_widget),
+ "vertical-separator", &vertical_separator,
+ NULL);
gtk_cell_renderer_get_size(renderer,
GTK_WIDGET(process_list->process_list_widget),
NULL,
NULL,
NULL,
&process_list->cell_height);
-
+
guint ypad;
g_object_get(G_OBJECT(renderer), "ypad", &ypad, NULL);
process_list->cell_height += ypad;
-
+ process_list->cell_height += vertical_separator;
+
+
column = gtk_tree_view_column_new_with_attributes ( "Process",
renderer,
"text",
gint width, gint height);
-static inline gint get_cell_height(ProcessList *process_list,
- GtkTreeView *TreeView)
+static inline gint get_cell_height(GtkTreeView *TreeView)
{
gint height;
GtkTreeViewColumn *column = gtk_tree_view_get_column(TreeView, 0);
gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &height);
-
+
+ gint vertical_separator;
+ gtk_widget_style_get (GTK_WIDGET (TreeView),
+ "vertical-separator", &vertical_separator,
+ NULL);
+
+ height += vertical_separator;
+
return height;
}
&hashed_process_data->y_iter);
path_indices = gtk_tree_path_get_indices (tree_path);
- *height = get_cell_height(process_list,
- (GtkTreeView*)process_list->process_list_widget);
+ *height = get_cell_height((GtkTreeView*)process_list->process_list_widget);
*y = *height * path_indices[0];
gtk_tree_path_free(tree_path);
gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &height);
+
+ gint vertical_separator;
+ gtk_widget_style_get (GTK_WIDGET (TreeView),
+ "vertical-separator", &vertical_separator,
+ NULL);
+
+ height += vertical_separator;
+
return height;
}