X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Ftoolbar.c;h=72f4a1573bf87e4bc985d3126f51d5b941aee920;hb=2eef04b5f3234a4e303bd6162eb20d055b7d44cf;hp=8a7eb4a227e228d3cca56c2ef5b635ed384ea068;hpb=155a7b0acd4feb97f08a7f4fd481000890ef37d8;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.c index 8a7eb4a2..72f4a157 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.c @@ -37,14 +37,11 @@ LttvToolbarClosure lttv_toolbars_add(LttvToolbars *h, { LttvToolbarClosure c; - /* if h is null, do nothing, or popup a warning message */ - if(h == NULL)return; - c.con = f; c.tooltip = tooltip; c.pixmap = pixmap; c.widget = widget; - g_array_append_val(h,c); + if(h != NULL) g_array_append_val(h,c); return c; } @@ -52,7 +49,7 @@ LttvToolbarClosure lttv_toolbars_add(LttvToolbars *h, GtkWidget *lttv_toolbars_remove(LttvToolbars *h, lttvwindow_viewer_constructor f) { LttvToolbarClosure * tmp; - gint i; + guint i; GtkWidget *widget; for(i=0;ilen;i++){