X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Ftoolbar.c;h=72f4a1573bf87e4bc985d3126f51d5b941aee920;hb=bcacff8e2fc03007501455792b55b793996d336a;hp=8a7eb4a227e228d3cca56c2ef5b635ed384ea068;hpb=6550d71135aed5d81a76d7d5625757570bcf0819;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++){