X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fmenu.c;h=5235acaaa61acdde2a1de3d3228ab8a2451ab7f0;hb=c5b5eee19c4b2e48bb844082c71e19e88a1887c3;hp=90a782b5ba76dcf1ba8898fc46f2ca94ab0a8f7e;hpb=6550d71135aed5d81a76d7d5625757570bcf0819;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c index 90a782b5..5235acaa 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c @@ -16,6 +16,10 @@ * MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include @@ -38,14 +42,11 @@ LttvMenuClosure lttv_menus_add(LttvMenus *h, { LttvMenuClosure c; - /* if h is null, do nothing, or popup a warning message */ - if(h == NULL)return; - c.con = f; c.menu_path = menu_path; c.menu_text = menu_text; c.widget = widget; - g_array_append_val(h,c); + if(h != NULL) g_array_append_val(h,c); return c; } @@ -53,7 +54,7 @@ LttvMenuClosure lttv_menus_add(LttvMenus *h, GtkWidget *lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f) { LttvMenuClosure * tmp; - gint i; + guint i; GtkWidget *widget; for(i=0;ilen;i++){