]> Pileus Git - ~andy/gtk/commitdiff
Bah, and of course I broke something ...
authorKristian Rietveld <kris@gtk.org>
Sun, 3 Nov 2002 20:12:00 +0000 (20:12 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Sun, 3 Nov 2002 20:12:00 +0000 (20:12 +0000)
Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>

        Bah, and of course I broke something ...

        * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
        up the mess I caused with my commit of Oct 23 fixing #50263, things
        should be fine now.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreeselection.c

index f086b4a192282e5a0c6253bb08fa2933039aac69..7b12733bbaed0b3d50781b7beb34d14f896915f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
+
+       Bah, and of course I broke something ...
+
+       * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
+       up the mess I caused with my commit of Oct 23 fixing #50263, things
+       should be fine now.
+
 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilesel.c configure.in: Remove check for
index f086b4a192282e5a0c6253bb08fa2933039aac69..7b12733bbaed0b3d50781b7beb34d14f896915f2 100644 (file)
@@ -1,3 +1,11 @@
+Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
+
+       Bah, and of course I broke something ...
+
+       * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
+       up the mess I caused with my commit of Oct 23 fixing #50263, things
+       should be fine now.
+
 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilesel.c configure.in: Remove check for
index f086b4a192282e5a0c6253bb08fa2933039aac69..7b12733bbaed0b3d50781b7beb34d14f896915f2 100644 (file)
@@ -1,3 +1,11 @@
+Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
+
+       Bah, and of course I broke something ...
+
+       * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
+       up the mess I caused with my commit of Oct 23 fixing #50263, things
+       should be fine now.
+
 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilesel.c configure.in: Remove check for
index f086b4a192282e5a0c6253bb08fa2933039aac69..7b12733bbaed0b3d50781b7beb34d14f896915f2 100644 (file)
@@ -1,3 +1,11 @@
+Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
+
+       Bah, and of course I broke something ...
+
+       * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
+       up the mess I caused with my commit of Oct 23 fixing #50263, things
+       should be fine now.
+
 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilesel.c configure.in: Remove check for
index f086b4a192282e5a0c6253bb08fa2933039aac69..7b12733bbaed0b3d50781b7beb34d14f896915f2 100644 (file)
@@ -1,3 +1,11 @@
+Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
+
+       Bah, and of course I broke something ...
+
+       * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
+       up the mess I caused with my commit of Oct 23 fixing #50263, things
+       should be fine now.
+
 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilesel.c configure.in: Remove check for
index f086b4a192282e5a0c6253bb08fa2933039aac69..7b12733bbaed0b3d50781b7beb34d14f896915f2 100644 (file)
@@ -1,3 +1,11 @@
+Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
+
+       Bah, and of course I broke something ...
+
+       * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
+       up the mess I caused with my commit of Oct 23 fixing #50263, things
+       should be fine now.
+
 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilesel.c configure.in: Remove check for
index b6b6adac80ab192405b10fa77132d1b9f9643363..d0239b5891c14bba36847053857c619688af2fd0 100644 (file)
@@ -610,7 +610,7 @@ gtk_tree_selection_selected_foreach (GtkTreeSelection            *selection,
   GtkTreeIter iter;
 
   guint inserted_id, deleted_id, reordered_id;
-  gboolean stop = FALSE, has_next = FALSE, has_parent = FALSE;
+  gboolean stop = FALSE, has_next = TRUE, has_parent = TRUE;
 
   g_return_if_fail (GTK_IS_TREE_SELECTION (selection));
   g_return_if_fail (selection->tree_view != NULL);
@@ -681,7 +681,7 @@ gtk_tree_selection_selected_foreach (GtkTreeSelection            *selection,
          gtk_tree_path_append_index (path, 0);
 
          /* we do the sanity check at the bottom of this function */
-         if (has_child)
+         if (!has_child)
            goto out;
        }
       else
@@ -698,8 +698,9 @@ gtk_tree_selection_selected_foreach (GtkTreeSelection            *selection,
                  done = TRUE;
                  gtk_tree_path_next (path);
 
-                 /* Sanity Check! */
-                 TREE_VIEW_INTERNAL_ASSERT_VOID (has_next);
+                 /* we do the sanity check at the bottom of this function */
+                 if (!has_next)
+                   goto out;
                }
              else
                {
@@ -720,7 +721,7 @@ gtk_tree_selection_selected_foreach (GtkTreeSelection            *selection,
                  gtk_tree_path_up (path);
 
                  /* we do the sanity check at the bottom of this function */
-                 if (has_parent)
+                 if (!has_parent)
                    goto out;
                }
            }
@@ -741,9 +742,9 @@ out:
                                reordered_id);
 
   /* check if we have to spew a scary message */
-  if (has_next)
+  if (!has_next)
     TREE_VIEW_INTERNAL_ASSERT_VOID (has_next);
-  if (has_parent)
+  if (!has_parent)
     TREE_VIEW_INTERNAL_ASSERT_VOID (has_parent);
   if (stop)
     g_warning