install lttvwindow in normal lib dir
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / menu.c
index 90a782b5ba76dcf1ba8898fc46f2ca94ab0a8f7e..5235acaaa61acdde2a1de3d3228ab8a2451ab7f0 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <lttv/lttv.h>
 #include <lttvwindow/menu.h>
 
@@ -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;i<h->len;i++){
This page took 0.023222 seconds and 4 git commands to generate.