summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-11-28 15:32:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-11-28 15:32:44 +0000
commit4edf06d01641b03535e9cafbb945bc2eeb0716a4 (patch)
tree7873db0c6d9cf3a0ed3be213d2d50bb5575706bc
parent4ae9ec1361406c15c2ab507e1631846d9a3d1093 (diff)
downloadgdk-pixbuf-4edf06d01641b03535e9cafbb945bc2eeb0716a4.tar.gz
Correctly handle the cell list and indices into it. (#321856)
2005-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly handle the cell list and indices into it. (#321856)
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--gtk/gtkiconview.c10
3 files changed, 18 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c07a4cf04..1729178ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-11-28 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
+ handle the cell list and indices into it. (#321856)
+
+2005-11-28 Matthias Clasen <mclasen@redhat.com>
+
* gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
the timeout is done. (#322291, Jean-Yves Lefort)
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index c07a4cf04..1729178ce 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,5 +1,10 @@
2005-11-28 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
+ handle the cell list and indices into it. (#321856)
+
+2005-11-28 Matthias Clasen <mclasen@redhat.com>
+
* gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
the timeout is done. (#322291, Jean-Yves Lefort)
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 6657c7185..d5b680a7a 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -4714,10 +4714,13 @@ update_text_cell (GtkIconView *icon_view)
{
if (icon_view->priv->text_cell != -1)
{
+ if (icon_view->priv->pixbuf_cell > icon_view->priv->text_cell)
+ icon_view->priv->pixbuf_cell--;
+
info = g_list_nth_data (icon_view->priv->cell_list,
icon_view->priv->text_cell);
- g_list_remove (icon_view->priv->cell_list, info);
+ icon_view->priv->cell_list = g_list_remove (icon_view->priv->cell_list, info);
free_cell_info (info);
@@ -4784,10 +4787,13 @@ update_pixbuf_cell (GtkIconView *icon_view)
{
if (icon_view->priv->pixbuf_cell != -1)
{
+ if (icon_view->priv->text_cell > icon_view->priv->pixbuf_cell)
+ icon_view->priv->text_cell--;
+
info = g_list_nth_data (icon_view->priv->cell_list,
icon_view->priv->pixbuf_cell);
- g_list_remove (icon_view->priv->cell_list, info);
+ icon_view->priv->cell_list = g_list_remove (icon_view->priv->cell_list, info);
free_cell_info (info);