[glade3/signal-tree-model: 357/358] gladeui: Adapter to GladeSignal GObjectification



commit eaa7e3069055f409a12311013826976842db61d7
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Jan 6 12:58:31 2011 +0100

    gladeui: Adapter to GladeSignal GObjectification

 gladeui/glade-signal-editor.c |   10 +++++-----
 gladeui/glade-signal-model.c  |    2 +-
 gladeui/glade-signal.h        |    1 +
 3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gladeui/glade-signal-editor.c b/gladeui/glade-signal-editor.c
index 8b7df2e..f5ba90f 100644
--- a/gladeui/glade-signal-editor.c
+++ b/gladeui/glade-signal-editor.c
@@ -111,7 +111,7 @@ on_handler_edited (GtkCellRendererText* renderer,
 
 				glade_command_change_signal (self->priv->widget, old_signal, new_signal);
 
-				glade_signal_free (new_signal);
+				g_object_unref (new_signal);
 			}
 			else
 			{
@@ -148,7 +148,7 @@ on_handler_edited (GtkCellRendererText* renderer,
 			                          tree_path,
 			                          self->priv->column_userdata,
 			                          TRUE);
-			glade_signal_free (signal);
+			g_object_unref (signal);
 			g_free (name);
 		}
 	}
@@ -195,7 +195,7 @@ on_userdata_edited (GtkCellRendererText* renderer,
 
 		glade_command_change_signal (self->priv->widget, old_signal, new_signal);
 
-		glade_signal_free (new_signal);
+		g_object_unref (new_signal);
 	}
 	g_free (old_userdata);
 	gtk_tree_path_free (tree_path);
@@ -231,7 +231,7 @@ on_swap_toggled (GtkCellRendererToggle* renderer,
 
 	glade_command_change_signal (self->priv->widget, old_signal, new_signal);
 
-	glade_signal_free (new_signal);
+	g_object_unref (new_signal);
 	
 	gtk_tree_path_free (tree_path);		
 }
@@ -266,7 +266,7 @@ on_after_toggled (GtkCellRendererToggle* renderer,
 
 	glade_command_change_signal (self->priv->widget, old_signal, new_signal);
 
-	glade_signal_free (new_signal);
+	g_object_unref (new_signal);
 	
 	gtk_tree_path_free (tree_path);	
 }
diff --git a/gladeui/glade-signal-model.c b/gladeui/glade-signal-model.c
index a7014a9..f3b1f9c 100644
--- a/gladeui/glade-signal-model.c
+++ b/gladeui/glade-signal-model.c
@@ -70,7 +70,7 @@ glade_signal_model_init (GladeSignalModel *object)
 	object->priv = G_TYPE_INSTANCE_GET_PRIVATE (object, GLADE_TYPE_SIGNAL_MODEL, GladeSignalModelPrivate);
 
 	object->priv->dummy_signals = 
-		g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) glade_signal_free);
+		g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) g_object_unref);
 }
 
 static void
diff --git a/gladeui/glade-signal.h b/gladeui/glade-signal.h
index 04bae11..165c210 100644
--- a/gladeui/glade-signal.h
+++ b/gladeui/glade-signal.h
@@ -39,6 +39,7 @@ GladeSignal          *glade_signal_new                 (const gchar        *name
 							const gchar        *userdata,
 							gboolean            after,
 							gboolean            swapped);
+GladeSignal          *glade_signal_clone               (const GladeSignal  *signal);
 gboolean              glade_signal_equal               (const GladeSignal        *sig1, 
 							const GladeSignal        *sig2);
 GladeSignal          *glade_signal_read                (GladeXmlNode       *node);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]