diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-10-07 10:00:26 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-10-07 10:00:26 +0000 |
commit | 079ff0ba278867927833cc975fd22834ce63aa99 (patch) | |
tree | f9631b43abed97328f7143b4e989a672fdfd8202 /gtk/gui_stat_util.h | |
parent | 6de05a04763b7c9b69b2b39c71a227a17f99f301 (diff) |
From : Didier Gautheron
gtktreeview patch for stat(not well tested, no traces).
svn path=/trunk/; revision=30389
Diffstat (limited to 'gtk/gui_stat_util.h')
-rw-r--r-- | gtk/gui_stat_util.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gtk/gui_stat_util.h b/gtk/gui_stat_util.h index f80f2c28b1..0780f582e4 100644 --- a/gtk/gui_stat_util.h +++ b/gtk/gui_stat_util.h @@ -29,10 +29,21 @@ #include <gtk/gtk.h> + /** @file * Utilities for statistics. */ +#define LEFT 0 +#define RIGHT 1 + +/** Columns definition + */ +typedef struct { + GType type; /* column type */ + gint align; /* alignement */ + const char *title; /* column title */ +} stat_column; /** Init a window for stats, set title and display used filter in window. * @@ -48,8 +59,8 @@ extern void init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, const c * @param scrolled_window the scrolled window * @param vbox the vbox for the window * @param columns number of columns - * @param titles + * @param headers columns title and type, G_TYPE_POINTER is illegal, there's no default cell renderer for it */ -extern GtkCList *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const char *titles[]); +extern GtkTreeView *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const stat_column *headers); #endif |