[midgard-commits] r15183 - branches/branch-1-9/midgard/core/midgard/src

piotras midgard-commits at lists.midgard-project.org
Thu Feb 21 21:41:33 CET 2008


Author: piotras
Date: Thu Feb 21 21:41:33 2008
New Revision: 15183
URL: http://trac.midgard-project.org/software/changeset/15183

Log:
Create signals with G_SIGNAL_ACTION flag. It ignores class default closure


Modified:
   branches/branch-1-9/midgard/core/midgard/src/types.c

Modified: branches/branch-1-9/midgard/core/midgard/src/types.c
==============================================================================
--- branches/branch-1-9/midgard/core/midgard/src/types.c	(original)
+++ branches/branch-1-9/midgard/core/midgard/src/types.c	Thu Feb 21 21:41:33 2008
@@ -1714,7 +1714,7 @@
 		
 		g_signal_new("action_create",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_create),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1724,7 +1724,7 @@
 		
 		g_signal_new("action_created",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_created),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1734,8 +1734,7 @@
 	
 		g_signal_new("action_update",
 				G_TYPE_FROM_CLASS(g_class),
-				//G_SIGNAL_ACTION,
-				G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,	
 				G_STRUCT_OFFSET (MidgardObjectClass, action_update),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1745,7 +1744,7 @@
 
 		g_signal_new("action_updated",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_updated),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1755,7 +1754,7 @@
 
 		g_signal_new("action_delete",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_delete),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1765,7 +1764,7 @@
 
 		g_signal_new("action_deleted",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_deleted),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1775,7 +1774,7 @@
 
 		g_signal_new("action_import",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_import),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1785,7 +1784,7 @@
 
 		g_signal_new("action_imported",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_imported),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1795,7 +1794,7 @@
 
 		g_signal_new("action_export",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_export),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1805,7 +1804,7 @@
 
 		g_signal_new("action_exported",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_exported),
 				NULL, /* accumulator */
 				NULL, /* accu_data */
@@ -1815,7 +1814,7 @@
 
 		g_signal_new("action_loaded",
 				G_TYPE_FROM_CLASS(g_class),
-				G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+				G_SIGNAL_ACTION,
 				G_STRUCT_OFFSET (MidgardObjectClass, action_loaded),
 				NULL, /* accumulator */
 				NULL, /* accu_data */


More information about the midgard-commits mailing list