Enlightenment CVS committal

Author  : andreas99
Project : e16
Module  : tools

Dir     : e16/tools/e16menuedit2/src


Modified Files:
        e16menu.c e16menuedit2.c e16menuedit2.h file.c file.h 


Log Message:
some debug output -> use --enable-debug to see it

===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/e16menu.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e16menu.c   7 Aug 2004 17:08:31 -0000       1.3
+++ e16menu.c   10 Nov 2004 13:39:47 -0000      1.4
@@ -248,7 +248,7 @@
   has_child = gtk_tree_model_iter_has_child (model, iter);
   depth = gtk_tree_path_get_depth (path) - 1;
 
-#define WRITE_FILE /* undef this for debugging */
+#define WRITE_FILE /* undef this for debugging without writing menus */
 #ifdef WRITE_FILE
   if (depth + 1 >= MAX_RECURSION)
   {
===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/e16menuedit2.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e16menuedit2.c      2 Nov 2004 17:23:14 -0000       1.13
+++ e16menuedit2.c      10 Nov 2004 13:39:47 -0000      1.14
@@ -144,6 +144,16 @@
                       str);
 }
 
+void dbg_printf (const gchar *format, ...)
+{
+  va_list ap;
+
+  va_start (ap, format);
+
+  printf ("(%s, %d): ", __FILE__, __LINE__);
+  g_vprintf(format, ap);
+}
+
 gboolean browser_func (GtkTreeModel *model, GtkTreePath *path,
                        GtkTreeIter *iter, gpointer user_data)
 {
===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/e16menuedit2.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e16menuedit2.h      6 Oct 2004 18:19:13 -0000       1.6
+++ e16menuedit2.h      10 Nov 2004 13:39:47 -0000      1.7
@@ -44,5 +44,7 @@
 void print_statusbar (const gchar *format, ...);
 gboolean browser_func (GtkTreeModel *model, GtkTreePath *path,
                        GtkTreeIter *iter, gpointer user_data);
-                      
+
+#define DEBUG_OUTPUT printf ("(%s, %d): ", __FILE__, __LINE__);
+
 #endif /* _E16MENUEDIT_H */
===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/file.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- file.c      4 Nov 2004 14:12:58 -0000       1.8
+++ file.c      10 Nov 2004 13:39:47 -0000      1.9
@@ -345,6 +345,9 @@
 
   params = g_strdup_printf ("%s/%s/%s", help_dir,
                             locale, help_file);
+#ifdef DEBUG
+  DEBUG_OUTPUT printf ("%s\n", params);
+#endif /* DEBUG */  
   help_missing = stat (params, &buf);
 
   /* locale fallback 1 */
@@ -354,6 +357,9 @@
     g_free (params);
     params = g_strdup_printf ("%s/%s/%s", help_dir,
                               locale_fallback, help_file);
+    #ifdef DEBUG
+    DEBUG_OUTPUT printf ("Try help fallback1: %s\n", params);
+    #endif /* DEBUG */  
     help_missing = stat (params, &buf);
 
     /* locale fallback 2 */
@@ -366,6 +372,9 @@
       g_free (params);
       params = g_strdup_printf ("%s/%s/%s", help_dir,
                                 locale_fallback, help_file);
+      #ifdef DEBUG
+      DEBUG_OUTPUT printf ("Try help fallback2: %s\n", params);
+      #endif /* DEBUG */  
       help_missing = stat (params, &buf);
 
       /* locale fallback 3 */
@@ -378,6 +387,9 @@
         g_free (params);
         params = g_strdup_printf ("%s/%s/%s", help_dir,
                                   locale_fallback, help_file);
+       #ifdef DEBUG
+        DEBUG_OUTPUT printf ("Try help fallback4: %s\n", params);
+        #endif /* DEBUG */  
         help_missing = stat (params, &buf);
       }
     }
@@ -393,6 +405,10 @@
     argv_child[0] = help_app;
     argv_child[1] = params;
     argv_child[2] = NULL;
+  
+    #ifdef DEBUG
+    DEBUG_OUTPUT printf ("Try exec help: %s %s\n", help_app, params);
+    #endif /* DEBUG */
 
     spawn = g_spawn_async (NULL, argv_child, NULL,
                            G_SPAWN_SEARCH_PATH, NULL,
===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/file.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- file.h      28 Aug 2004 12:27:59 -0000      1.6
+++ file.h      10 Nov 2004 13:39:47 -0000      1.7
@@ -41,6 +41,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <locale.h>
+#include "e16menuedit2.h"
 
 char *field (char *s, int field);
 void fword (char *s, int num, char *wd);




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to