From 6e63a0b8719954156fcfd762c71c5cd8302b63d0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 24 Dec 2004 03:48:47 +0000 Subject: [PATCH] =?UTF-8?q?Return=20TRUE=20if=20there=20are=20children.=20?= =?UTF-8?q?(#162134,=20I=C3=B1igo=20Serna,=20patch=20by=20John?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2004-12-23 Matthias Clasen * gtk/gtkliststore.c (gtk_list_store_iter_children): Return TRUE if there are children. (#162134, Iñigo Serna, patch by John Finlay) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/gtkliststore.c | 2 +- 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 33c2271cdc..becb104fe5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-12-23 Matthias Clasen + * gtk/gtkliststore.c (gtk_list_store_iter_children): + Return TRUE if there are children. (#162134, Iñigo Serna, + patch by John Finlay) + * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Transfer state from the button to the cell view to get prelighting right. (#156327, Ricardo Veguilla) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 33c2271cdc..becb104fe5 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2004-12-23 Matthias Clasen + * gtk/gtkliststore.c (gtk_list_store_iter_children): + Return TRUE if there are children. (#162134, Iñigo Serna, + patch by John Finlay) + * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Transfer state from the button to the cell view to get prelighting right. (#156327, Ricardo Veguilla) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 33c2271cdc..becb104fe5 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2004-12-23 Matthias Clasen + * gtk/gtkliststore.c (gtk_list_store_iter_children): + Return TRUE if there are children. (#162134, Iñigo Serna, + patch by John Finlay) + * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Transfer state from the button to the cell view to get prelighting right. (#156327, Ricardo Veguilla) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 33c2271cdc..becb104fe5 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2004-12-23 Matthias Clasen + * gtk/gtkliststore.c (gtk_list_store_iter_children): + Return TRUE if there are children. (#162134, Iñigo Serna, + patch by John Finlay) + * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Transfer state from the button to the cell view to get prelighting right. (#156327, Ricardo Veguilla) diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index f05a1f2f7c..6149225569 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -576,7 +576,7 @@ gtk_list_store_iter_children (GtkTreeModel *tree_model, list_store = GTK_LIST_STORE (tree_model); - if (_gtk_sequence_get_length (list_store->seq) == 0) + if (_gtk_sequence_get_length (list_store->seq) > 0) { iter->stamp = list_store->stamp; iter->user_data = _gtk_sequence_get_begin_ptr (list_store->seq);