[glade3/glade-3-8] Small code cleanup in GladeProject.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3/glade-3-8] Small code cleanup in GladeProject.
- Date: Sun, 19 Dec 2010 11:02:56 +0000 (UTC)
commit d0a49f682bc2431569c277edb92a7271cf428526
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Dec 19 20:05:50 2010 +0900
Small code cleanup in GladeProject.
gladeui/glade-project.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index d0e8796..8d73dc2 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -2993,7 +2993,7 @@ void
glade_project_remove_object (GladeProject *project, GObject *object)
{
GladeWidget *gwidget;
- GList *list, *children, *link;
+ GList *list, *children;
GtkTreeIter iter;
GtkTreePath *path;
@@ -3033,12 +3033,7 @@ glade_project_remove_object (GladeProject *project, GObject *object)
gwidget);
/* Update internal data structure (remove from lists) */
- link = g_list_find (project->priv->tree, object);
- if (link)
- {
- project->priv->tree = g_list_delete_link (project->priv->tree, link);
- }
-
+ project->priv->tree = g_list_remove (project->priv->tree, object);
project->priv->objects = g_list_remove (project->priv->objects, object);
g_object_unref (gwidget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]