[gedit/gnome-3-14] GeditDocument: "loaded" and "saved" signals: run_last -> run_first
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-14] GeditDocument: "loaded" and "saved" signals: run_last -> run_first
- Date: Mon, 15 Dec 2014 11:36:36 +0000 (UTC)
commit 8660a190a114861e6d218e335577e00d7aabeb0e
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Dec 15 12:21:37 2014 +0100
GeditDocument: "loaded" and "saved" signals: run_last -> run_first
The object method handlers must be run first, so that the document is
fully loaded/saved, with the GtkSourceLanguage set etc.
https://bugzilla.gnome.org/show_bug.cgi?id=741545
gedit/gedit-document.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index f5a848f..ab4fab6 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -451,7 +451,7 @@ gedit_document_class_init (GeditDocumentClass *klass)
document_signals[LOADED] =
g_signal_new ("loaded",
G_OBJECT_CLASS_TYPE (object_class),
- G_SIGNAL_RUN_LAST,
+ G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GeditDocumentClass, loaded),
NULL, NULL, NULL,
G_TYPE_NONE, 0);
@@ -491,7 +491,7 @@ gedit_document_class_init (GeditDocumentClass *klass)
document_signals[SAVED] =
g_signal_new ("saved",
G_OBJECT_CLASS_TYPE (object_class),
- G_SIGNAL_RUN_LAST,
+ G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GeditDocumentClass, saved),
NULL, NULL, NULL,
G_TYPE_NONE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]