X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Ftoolbar.h;h=2fb4b395a515f3ac764d5cd3a737cf30914dbe29;hb=bcacff8e2fc03007501455792b55b793996d336a;hp=7e5df0c4b0a5d6cbb8ac4fb122ed501d3ebe92b6;hpb=42fcbb715d16ba7c2c0a37aab5add4bd64d96079;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h index 7e5df0c4..2fb4b395 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h @@ -19,23 +19,29 @@ #ifndef TOOLBAR_H #define TOOLBAR_H -#include +#include +#include typedef GArray LttvToolbars; -typedef struct _lttv_toolbar_closure { +typedef struct _LttvToolbarClosure { lttvwindow_viewer_constructor con; char * tooltip; char ** pixmap; -} lttv_toolbar_closure; + GtkWidget *widget; +} LttvToolbarClosure; LttvToolbars *lttv_toolbars_new(); void lttv_toolbars_destroy(LttvToolbars *h); -void lttv_toolbars_add(LttvToolbars *h, lttvwindow_viewer_constructor f, char* tooltip, char ** pixmap); +LttvToolbarClosure lttv_toolbars_add(LttvToolbars *h, + lttvwindow_viewer_constructor f, + char* tooltip, + char ** pixmap, + GtkWidget *widget); -gboolean lttv_toolbars_remove(LttvToolbars *h, lttvwindow_viewer_constructor f); +GtkWidget *lttv_toolbars_remove(LttvToolbars *h, lttvwindow_viewer_constructor f); unsigned lttv_toolbars_number(LttvToolbars *h);