[epiphany/wip/modern_gobject: 7/7] EphyWebOverviewModel: Stop manually specifying signal marshallers
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/modern_gobject: 7/7] EphyWebOverviewModel: Stop manually specifying signal marshallers
- Date: Fri, 11 Sep 2015 02:12:35 +0000 (UTC)
commit 970ebed42e0637174f76d0280c3dd1e92e845e01
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Sep 10 20:34:04 2015 -0500
EphyWebOverviewModel: Stop manually specifying signal marshallers
"The C signal marshaller should always be NULL, in which case the best
marshaller for the given closure type will be chosen by GLib. This may
be an internal marshaller specific to the closure type, or
g_cclosure_marshal_generic, which implements generic conversion of
arrays of parameters to C callback invocations. GLib used to require the
user to write or generate a type-specific marshaller and pass that, but
that has been deprecated in favour of automatic selection of
marshallers."
https://developer.gnome.org/gobject/unstable/howto-signals.html
embed/web-extension/ephy-web-overview-model.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-overview-model.c b/embed/web-extension/ephy-web-overview-model.c
index 8143abf..1280206 100644
--- a/embed/web-extension/ephy-web-overview-model.c
+++ b/embed/web-extension/ephy-web-overview-model.c
@@ -73,16 +73,14 @@ ephy_web_overview_model_class_init (EphyWebOverviewModelClass *klass)
g_signal_new ("urls-changed",
EPHY_TYPE_WEB_OVERVIEW_MODEL,
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
signals[THUMBNAIL_CHANGED] =
g_signal_new ("thumbnail-changed",
EPHY_TYPE_WEB_OVERVIEW_MODEL,
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_generic,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 2,
G_TYPE_STRING,
G_TYPE_STRING);
@@ -91,8 +89,7 @@ ephy_web_overview_model_class_init (EphyWebOverviewModelClass *klass)
g_signal_new ("title-changed",
EPHY_TYPE_WEB_OVERVIEW_MODEL,
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_generic,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 2,
G_TYPE_STRING,
G_TYPE_STRING);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]