mirror of https://github.com/GNOME/gimp.git
removed the "row_deleted" handler which used to take care of reinserting
2005-04-22 Sven Neumann <sven@gimp.org> * 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.
This commit is contained in:
parent
e37143c28b
commit
771d5459ba
|
@ -1,3 +1,10 @@
|
|||
2005-04-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* 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 <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpdockable.[ch]: removed Close button from
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue