From b7e0ad6b8ee7feb6a381c0a5ac66818bcaa09b3f Mon Sep 17 00:00:00 2001
From: rds <rds>
Date: Fri, 22 May 2009 09:48:52 +0000
Subject: [PATCH] just compiler warning

---
 src/zmapUtils/zmapGUITreeView.c | 22 ++++++++++++++++++++--
 src/zmapUtils/zmapUtils.c       |  7 ++++---
 2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/zmapUtils/zmapGUITreeView.c b/src/zmapUtils/zmapGUITreeView.c
index b7a7d8197..4aa0abe64 100755
--- a/src/zmapUtils/zmapGUITreeView.c
+++ b/src/zmapUtils/zmapGUITreeView.c
@@ -27,9 +27,9 @@
  *
  * Exported functions: See XXXXXXXXXXXXX.h
  * HISTORY:
- * Last edited: Oct  9 18:27 2008 (rds)
+ * Last edited: May 22 10:41 2009 (rds)
  * Created: Thu May 22 10:00:37 2008 (rds)
- * CVS info:   $Id: zmapGUITreeView.c,v 1.5 2008-10-10 08:29:47 rds Exp $
+ * CVS info:   $Id: zmapGUITreeView.c,v 1.6 2009-05-22 09:49:05 rds Exp $
  *-------------------------------------------------------------------
  */
 
@@ -1401,6 +1401,18 @@ static GtkTreeView *createView(ZMapGUITreeView zmap_tv)
   return tree_view;
 }
 
+static void row_deletion_cb(GtkTreeModel *tree_model,
+			    GtkTreePath  *path,
+			    gpointer      user_data) 
+{
+#ifdef COMPILER_COMPLAINS
+  ZMapGUITreeView zmap_tv = ZMAP_GUITREEVIEW(user_data);
+#endif
+
+  printf("row '%s' deleted\n", gtk_tree_path_to_string(path));
+
+  return ;
+}
 /* Separate function in case we start making Different TreeModels other than ListStores */
 static GtkTreeModel *createModel(ZMapGUITreeView zmap_tv)
 {
@@ -1423,6 +1435,12 @@ static GtkTreeModel *createModel(ZMapGUITreeView zmap_tv)
       zmap_tv->init_layout_called = TRUE;
       model = createModel(zmap_tv);
     }
+    
+  if(model)
+    {
+      g_signal_connect(G_OBJECT(model), "row-deleted",
+		       G_CALLBACK(row_deletion_cb), zmap_tv);
+    }
 
   return model ;
 }
diff --git a/src/zmapUtils/zmapUtils.c b/src/zmapUtils/zmapUtils.c
index 7dace1ea6..7f4bf94af 100755
--- a/src/zmapUtils/zmapUtils.c
+++ b/src/zmapUtils/zmapUtils.c
@@ -26,18 +26,19 @@
  *              
  * Exported functions: See ZMap/zmapUtils.h
  * HISTORY:
- * Last edited: Mar 30 10:11 2009 (edgrif)
+ * Last edited: May 22 10:48 2009 (rds)
  * Created: Fri Mar 12 08:16:24 2004 (edgrif)
- * CVS info:   $Id: zmapUtils.c,v 1.30 2009-04-03 15:38:21 edgrif Exp $
+ * CVS info:   $Id: zmapUtils.c,v 1.31 2009-05-22 09:48:52 rds Exp $
  *-------------------------------------------------------------------
  */
 
+#define _ISOC99_SOURCE
+
 #include <sys/wait.h>
 #include <time.h>
 #include <string.h>
 #include <errno.h>
 #include <stdio.h>
-#define _ISOC99_SOURCE
 #include <stdlib.h>
 
 #include <zmapUtils_P.h>
-- 
GitLab