[epiphany/wip/modern_gobject: 63/70] EphyFindToolbar: Remove unused virtual signals
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/modern_gobject: 63/70] EphyFindToolbar: Remove unused virtual signals
- Date: Thu, 24 Sep 2015 20:37:53 +0000 (UTC)
commit e4654e65db5d743ab7720d3bfc31274ba6d4b85e
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Sep 19 13:09:27 2015 -0500
EphyFindToolbar: Remove unused virtual signals
So we can use G_DECLARE_FINAL_TYPE
embed/ephy-find-toolbar.c | 12 +++---------
embed/ephy-find-toolbar.h | 5 -----
2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c
index 951d82e..65e9ac9 100644
--- a/embed/ephy-find-toolbar.c
+++ b/embed/ephy-find-toolbar.c
@@ -566,15 +566,11 @@ ephy_find_toolbar_class_init (EphyFindToolbarClass *klass)
widget_class->draw = ephy_find_toolbar_draw;
widget_class->grab_focus = ephy_find_toolbar_grab_focus;
- klass->next = ephy_find_toolbar_find_next;
- klass->previous = ephy_find_toolbar_find_previous;
-
signals[NEXT] =
g_signal_new ("next",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (EphyFindToolbarClass, next),
- NULL, NULL,
+ 0, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
@@ -582,8 +578,7 @@ ephy_find_toolbar_class_init (EphyFindToolbarClass *klass)
g_signal_new ("previous",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (EphyFindToolbarClass, previous),
- NULL, NULL,
+ 0, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
@@ -591,8 +586,7 @@ ephy_find_toolbar_class_init (EphyFindToolbarClass *klass)
g_signal_new ("close",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
- G_STRUCT_OFFSET (EphyFindToolbarClass, close),
- NULL, NULL,
+ 0, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
diff --git a/embed/ephy-find-toolbar.h b/embed/ephy-find-toolbar.h
index 4bb9ed9..1f43bea 100644
--- a/embed/ephy-find-toolbar.h
+++ b/embed/ephy-find-toolbar.h
@@ -53,11 +53,6 @@ struct _EphyFindToolbar
struct _EphyFindToolbarClass
{
GtkSearchBarClass parent_class;
-
- /* Signals */
- void (* next) (EphyFindToolbar *toolbar);
- void (* previous) (EphyFindToolbar *toolbar);
- void (* close) (EphyFindToolbar *toolbar);
};
GType ephy_find_toolbar_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]