summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-08-03 19:50:23 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-08-03 19:50:23 +0000
commitf8a40e214a534f7c54fc41c3615df78a67cd3c63 (patch)
tree631322e6507dcad01cddad73e943c295c578f7cd
parent08d246be8908f4e3727df0a30995a36925be365f (diff)
downloadgdk-pixbuf-f8a40e214a534f7c54fc41c3615df78a67cd3c63.tar.gz
New public function to find a row by its data pointer using a custom
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public function to find a row by its data pointer using a custom comparison function.
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtkctree.c21
-rw-r--r--gtk/gtkctree.h4
9 files changed, 67 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e629a787a..172ab4277 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index e629a787a..172ab4277 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index e629a787a..172ab4277 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index e629a787a..172ab4277 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index e629a787a..172ab4277 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index e629a787a..172ab4277 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index e629a787a..172ab4277 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
diff --git a/gtk/gtkctree.c b/gtk/gtkctree.c
index 9cee1fd40..b36fb5e7c 100644
--- a/gtk/gtkctree.c
+++ b/gtk/gtkctree.c
@@ -4077,6 +4077,27 @@ gtk_ctree_find_by_row_data (GtkCTree *ctree,
return NULL;
}
+GtkCTreeNode *
+gtk_ctree_find_by_row_data_custom (GtkCTree *ctree,
+ GtkCTreeNode *node,
+ gpointer data,
+ GCompareFunc func)
+{
+ GtkCTreeNode *work;
+
+ while (node)
+ {
+ if (!func (GTK_CTREE_ROW (node)->row.data, data))
+ return node;
+ if (GTK_CTREE_ROW (node)->children &&
+ (work = gtk_ctree_find_by_row_data_custom
+ (ctree, GTK_CTREE_ROW (node)->children, data, func)))
+ return work;
+ node = GTK_CTREE_ROW (node)->sibling;
+ }
+ return NULL;
+}
+
gboolean
gtk_ctree_is_hot_spot (GtkCTree *ctree,
gint x,
diff --git a/gtk/gtkctree.h b/gtk/gtkctree.h
index b48e2aad3..01e8d78dd 100644
--- a/gtk/gtkctree.h
+++ b/gtk/gtkctree.h
@@ -222,6 +222,10 @@ gboolean gtk_ctree_is_ancestor (GtkCTree *ctree,
GtkCTreeNode * gtk_ctree_find_by_row_data (GtkCTree *ctree,
GtkCTreeNode *node,
gpointer data);
+GtkCTreeNode * gtk_ctree_find_by_row_data_custom (GtkCTree *ctree,
+ GtkCTreeNode *node,
+ gpointer data,
+ GCompareFunc func);
gboolean gtk_ctree_is_hot_spot (GtkCTree *ctree,
gint x,
gint y);