[gnome-builder] libide: Don't swap parameters on callbacks for PeasExtensionSet signals
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: Don't swap parameters on callbacks for PeasExtensionSet signals
- Date: Mon, 25 Jan 2016 00:22:55 +0000 (UTC)
commit 5a9bf7178dc67484b93fc9280eaa6d7ebec0c44c
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sun Jan 24 22:19:44 2016 +0000
libide: Don't swap parameters on callbacks for PeasExtensionSet signals
Doing otherwise will result on a "IDE_IS_CONTEXT (self)" assertion failing
in those callbacks, as they will be checking the wrong parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=761063
libide/ide-context.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 9ff39dc..5196892 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -1212,13 +1212,13 @@ ide_context_init_services (gpointer source_object,
"extension-added",
G_CALLBACK (ide_context_service_added),
self,
- G_CONNECT_SWAPPED);
+ 0);
g_signal_connect_object (self->services,
"extension-removed",
G_CALLBACK (ide_context_service_removed),
self,
- G_CONNECT_SWAPPED);
+ 0);
peas_extension_set_foreach (self->services,
(PeasExtensionSetForeachFunc)ide_context_service_added,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]