[gedit] Fix "Loaded" and "Saved" signal signatures to avoid py plugins from crashing.



commit 6cfce4297955e86efc662d9270368267bd9b4680
Author: José Aliste <jaliste src gnome org>
Date:   Fri Mar 25 07:48:51 2011 -0400

    Fix "Loaded" and "Saved" signal signatures to avoid py plugins from crashing.

 gedit/gedit-document.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 6070b59..38ce376 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -669,10 +669,10 @@ gedit_document_class_init (GeditDocumentClass *klass)
 			      G_SIGNAL_RUN_LAST,
 			      G_STRUCT_OFFSET (GeditDocumentClass, loaded),
 			      NULL, NULL,
-			      g_cclosure_marshal_VOID__POINTER,
+			      g_cclosure_marshal_VOID__BOXED,
 			      G_TYPE_NONE,
 			      1,
-			      G_TYPE_POINTER);
+			      G_TYPE_ERROR);
 
 	/**
 	 * GeditDocument::save:
@@ -720,10 +720,10 @@ gedit_document_class_init (GeditDocumentClass *klass)
 			      G_SIGNAL_RUN_LAST,
 			      G_STRUCT_OFFSET (GeditDocumentClass, saved),
 			      NULL, NULL,
-			      g_cclosure_marshal_VOID__POINTER,
+			      g_cclosure_marshal_VOID__BOXED,
 			      G_TYPE_NONE,
 			      1,
-			      G_TYPE_POINTER);
+			      G_TYPE_ERROR);
 
 	document_signals[SEARCH_HIGHLIGHT_UPDATED] =
 		g_signal_new ("search-highlight-updated",



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