[gimp] app: remove "item" parameter from gimp_canvas_proxy_group_remove_item()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove "item" parameter from gimp_canvas_proxy_group_remove_item()
- Date: Fri, 1 Oct 2010 07:28:46 +0000 (UTC)
commit 0f73269484e5cda35f9ea792b4235f523b0b3515
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 1 09:15:36 2010 +0200
app: remove "item" parameter from gimp_canvas_proxy_group_remove_item()
app/display/gimpcanvasproxygroup.c | 10 +++++-----
app/display/gimpcanvasproxygroup.h | 3 +--
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/app/display/gimpcanvasproxygroup.c b/app/display/gimpcanvasproxygroup.c
index e190359..25e1f2e 100644
--- a/app/display/gimpcanvasproxygroup.c
+++ b/app/display/gimpcanvasproxygroup.c
@@ -169,19 +169,19 @@ gimp_canvas_proxy_group_add_item (GimpCanvasProxyGroup *group,
void
gimp_canvas_proxy_group_remove_item (GimpCanvasProxyGroup *group,
- gpointer object,
- GimpCanvasItem *proxy_item)
+ gpointer object)
{
GimpCanvasProxyGroupPrivate *private;
+ GimpCanvasItem *proxy_item;
g_return_if_fail (GIMP_IS_CANVAS_GROUP (group));
g_return_if_fail (object != NULL);
- g_return_if_fail (GIMP_IS_CANVAS_ITEM (proxy_item));
private = GET_PRIVATE (group);
- g_return_if_fail (g_hash_table_lookup (private->proxy_hash, object) ==
- proxy_item);
+ proxy_item = g_hash_table_lookup (private->proxy_hash, object);
+
+ g_return_if_fail (proxy_item != NULL);
g_hash_table_remove (private->proxy_hash, object);
diff --git a/app/display/gimpcanvasproxygroup.h b/app/display/gimpcanvasproxygroup.h
index 0b29039..9dc29f5 100644
--- a/app/display/gimpcanvasproxygroup.h
+++ b/app/display/gimpcanvasproxygroup.h
@@ -55,8 +55,7 @@ void gimp_canvas_proxy_group_add_item (GimpCanvasProxyGroup *grou
gpointer object,
GimpCanvasItem *proxy_item);
void gimp_canvas_proxy_group_remove_item (GimpCanvasProxyGroup *group,
- gpointer object,
- GimpCanvasItem *proxy_item);
+ gpointer object);
GimpCanvasItem * gimp_canvas_proxy_group_get_item (GimpCanvasProxyGroup *group,
gpointer object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]