From 771d5459ba1fbcbdff13a6cc47b92c692cb5d339 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 21 Apr 2005 23:49:47 +0000 Subject: [PATCH] removed the "row_deleted" handler which used to take care of reinserting 2005-04-22 Sven Neumann * libgimpwidgets/gimpintstore.c: removed the "row_deleted" handler which used to take care of reinserting the "Empty" item when the last row gets deleted. This doesn't work any longer with GTK+ 2.6 and I see now way to make it work again. Fixes bug #301524. --- ChangeLog | 7 +++++++ libgimpwidgets/gimpintstore.c | 14 -------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae9e0056c7..e9df9a2032 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-04-22 Sven Neumann + + * libgimpwidgets/gimpintstore.c: removed the "row_deleted" handler + which used to take care of reinserting the "Empty" item when the + last row gets deleted. This doesn't work any longer with GTK+ 2.6 + and I see now way to make it work again. Fixes bug #301524. + 2005-04-22 Sven Neumann * app/widgets/gimpdockable.[ch]: removed Close button from diff --git a/libgimpwidgets/gimpintstore.c b/libgimpwidgets/gimpintstore.c index b16f3d96b1..982a6eb3cf 100644 --- a/libgimpwidgets/gimpintstore.c +++ b/libgimpwidgets/gimpintstore.c @@ -40,8 +40,6 @@ static void gimp_int_store_finalize (GObject *object); static void gimp_int_store_row_inserted (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter); -static void gimp_int_store_row_deleted (GtkTreeModel *model, - GtkTreePath *path); static void gimp_int_store_add_empty (GimpIntStore *store); @@ -102,7 +100,6 @@ gimp_int_store_tree_model_init (GtkTreeModelIface *iface) parent_iface = g_type_interface_peek_parent (iface); iface->row_inserted = gimp_int_store_row_inserted; - iface->row_deleted = gimp_int_store_row_deleted; } static void @@ -157,17 +154,6 @@ gimp_int_store_row_inserted (GtkTreeModel *model, } } -static void -gimp_int_store_row_deleted (GtkTreeModel *model, - GtkTreePath *path) -{ - if (parent_iface->row_deleted) - parent_iface->row_deleted (model, path); - - if (gtk_tree_model_iter_n_children (model, NULL) == 0) - gimp_int_store_add_empty (GIMP_INT_STORE (model)); -} - static void gimp_int_store_add_empty (GimpIntStore *store) {