[epiphany] Stop manually specifying signal marshallers
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Stop manually specifying signal marshallers
- Date: Tue, 1 Mar 2016 00:34:02 +0000 (UTC)
commit 89908b029b45d5b0743456a1283dfe0c4bd2393a
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Feb 29 18:31:13 2016 -0600
Stop manually specifying signal marshallers
This is deprecated. Remove the remaining usages.
embed/ephy-downloads-manager.c | 9 +++------
lib/history/ephy-history-service.c | 15 +++++----------
lib/widgets/ephy-zoom-action.c | 3 +--
lib/widgets/nautilus-floating-bar.c | 3 +--
src/ephy-link.c | 2 +-
src/ephy-title-box.c | 3 +--
6 files changed, 12 insertions(+), 23 deletions(-)
---
diff --git a/embed/ephy-downloads-manager.c b/embed/ephy-downloads-manager.c
index b7c1b2a..4a7c3af 100644
--- a/embed/ephy-downloads-manager.c
+++ b/embed/ephy-downloads-manager.c
@@ -101,8 +101,7 @@ ephy_downloads_manager_class_init (EphyDownloadsManagerClass *klass)
g_signal_new ("download-added",
EPHY_TYPE_DOWNLOADS_MANAGER,
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 1,
EPHY_TYPE_DOWNLOAD);
@@ -110,8 +109,7 @@ ephy_downloads_manager_class_init (EphyDownloadsManagerClass *klass)
g_signal_new ("download-removed",
EPHY_TYPE_DOWNLOADS_MANAGER,
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 1,
EPHY_TYPE_DOWNLOAD);
@@ -119,8 +117,7 @@ ephy_downloads_manager_class_init (EphyDownloadsManagerClass *klass)
g_signal_new ("estimated-progress-changed",
EPHY_TYPE_DOWNLOADS_MANAGER,
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
}
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index a336e88..ea72a66 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -201,8 +201,7 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
g_signal_new ("urls-visited",
G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE,
0);
@@ -210,8 +209,7 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
g_signal_new ("cleared",
G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE,
0);
@@ -219,8 +217,7 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
g_signal_new ("url-title-changed",
G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_generic,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE,
2,
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
@@ -230,8 +227,7 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
g_signal_new ("url-deleted",
G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__STRING,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE,
1,
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
@@ -240,8 +236,7 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
g_signal_new ("host-deleted",
G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__STRING,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE,
1,
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
diff --git a/lib/widgets/ephy-zoom-action.c b/lib/widgets/ephy-zoom-action.c
index 1c80e71..fe1c899 100644
--- a/lib/widgets/ephy-zoom-action.c
+++ b/lib/widgets/ephy-zoom-action.c
@@ -188,8 +188,7 @@ ephy_zoom_action_class_init (EphyZoomActionClass *class)
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (EphyZoomActionClass, zoom_to_level),
- NULL, NULL,
- g_cclosure_marshal_VOID__FLOAT,
+ NULL, NULL, NULL,
G_TYPE_NONE,
1,
G_TYPE_FLOAT);
diff --git a/lib/widgets/nautilus-floating-bar.c b/lib/widgets/nautilus-floating-bar.c
index 20db8f9..52219b9 100644
--- a/lib/widgets/nautilus-floating-bar.c
+++ b/lib/widgets/nautilus-floating-bar.c
@@ -392,8 +392,7 @@ nautilus_floating_bar_class_init (NautilusFloatingBarClass *klass)
g_signal_new ("action",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_VOID__INT,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE, 1,
G_TYPE_INT);
diff --git a/src/ephy-link.c b/src/ephy-link.c
index 2f5dd34..aa0fd05 100644
--- a/src/ephy-link.c
+++ b/src/ephy-link.c
@@ -56,7 +56,7 @@ ephy_link_default_init (EphyLinkInterface *iface)
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (EphyLinkInterface, open_link),
ephy_signal_accumulator_object, ephy_embed_get_type,
- g_cclosure_marshal_generic,
+ NULL,
GTK_TYPE_WIDGET /* Can't use an interface type here */,
3,
G_TYPE_STRING,
diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c
index d05f132..0223eea 100644
--- a/src/ephy-title-box.c
+++ b/src/ephy-title-box.c
@@ -426,8 +426,7 @@ ephy_title_box_class_init (EphyTitleBoxClass *klass)
signals[LOCK_CLICKED] = g_signal_new ("lock-clicked",
EPHY_TYPE_TITLE_BOX,
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- g_cclosure_marshal_generic,
+ 0, NULL, NULL, NULL,
G_TYPE_NONE,
1,
GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]