[glade3] gladeui: fixed addition and removal of widgets
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] gladeui: fixed addition and removal of widgets
- Date: Fri, 14 May 2010 22:01:42 +0000 (UTC)
commit 412b3e53537f0484bb91ebb1805791733ac3e074
Author: Johannes Schmid <jhs gnome org>
Date: Sun Apr 18 19:18:16 2010 +0200
gladeui: fixed addition and removal of widgets
There were some checks that are no longer necessary as our project tree is dynamic which
prevented the emission of the "add_widget"-signal.
gladeui/glade-project.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index e7f3d6f..536fb63 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -2698,18 +2698,6 @@ glade_project_add_object (GladeProject *project,
*/
if ((gwidget = glade_widget_get_from_gobject (object)) == NULL)
return;
-
- /* Dont add widgets that are already in the project */
- if (glade_project_has_object (project, object))
- return;
-
- if (old_project &&
- glade_project_has_object (old_project, object))
- {
- g_critical ("Trying to add object %s to a project but its already in another project",
- gwidget->name);
- return;
- }
/* set the project */
if (gwidget->project != project)
@@ -2756,10 +2744,8 @@ glade_project_add_object (GladeProject *project,
glade_project_signals [ADD_WIDGET],
0, gwidget);
- g_message ("Adding widget - loading!");
if (!project->priv->loading)
{
- g_message ("Adding widget!");
glade_project_model_get_iter_for_object (project, object, &iter);
path = gtk_tree_model_get_path (GTK_TREE_MODEL (project), &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]