From 8b4d044d4de65fc02692132a1471795ce26dcdc5 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 3 Nov 2003 22:41:37 +0000 Subject: Remove unused types. 2003-11-03 Christian Persch * lib/ephy-marshal.list: Remove unused types. * embed/ephy-embed.c: (ephy_embed_base_init): * lib/widgets/ephy-arrow-toolbutton.c: (ephy_arrow_toolbutton_class_init): * src/ephy-notebook.c: (ephy_notebook_class_init): Use g_cclosure_marshal_* instead of our own ephy_marshal_* where there is a one. For signals returning a boolean, use the g_signal_accumulator_true_handled accumulator. --- ChangeLog | 17 +++++++++++++++++ embed/ephy-embed.c | 26 +++++++++++++------------- lib/ephy-marshal.list | 19 ++++--------------- lib/widgets/ephy-arrow-toolbutton.c | 2 +- src/ephy-notebook.c | 8 ++++---- 5 files changed, 39 insertions(+), 33 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e5da1f88..72f7e0581 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2003-11-03 Christian Persch + + * lib/ephy-marshal.list: + + Remove unused types. + + * embed/ephy-embed.c: (ephy_embed_base_init): + * lib/widgets/ephy-arrow-toolbutton.c: + (ephy_arrow_toolbutton_class_init): + * src/ephy-notebook.c: (ephy_notebook_class_init): + + Use g_cclosure_marshal_* instead of our own ephy_marshal_* + where there is a one. + + For signals returning a boolean, use the + g_signal_accumulator_true_handled accumulator. + 2003-11-02 Xan Lopez * data/epiphany.schemas.in: diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 3158a1d00..a988f9732 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -107,7 +107,7 @@ ephy_embed_base_init (gpointer g_class) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyEmbedClass, link_message), NULL, NULL, - ephy_marshal_VOID__STRING, + g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); @@ -116,9 +116,9 @@ ephy_embed_base_init (gpointer g_class) EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EphyEmbedClass, context_menu), - NULL, NULL, - ephy_marshal_INT__OBJECT, - G_TYPE_INT, + g_signal_accumulator_true_handled, NULL, + ephy_marshal_BOOLEAN__OBJECT, + G_TYPE_BOOLEAN, 1, G_TYPE_OBJECT); ephy_embed_signals[FAVICON] = @@ -127,7 +127,7 @@ ephy_embed_base_init (gpointer g_class) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyEmbedClass, favicon), NULL, NULL, - ephy_marshal_VOID__STRING, + g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); @@ -137,7 +137,7 @@ ephy_embed_base_init (gpointer g_class) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyEmbedClass, js_status), NULL, NULL, - ephy_marshal_VOID__STRING, + g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); @@ -147,7 +147,7 @@ ephy_embed_base_init (gpointer g_class) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyEmbedClass, location), NULL, NULL, - ephy_marshal_VOID__STRING, + g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); @@ -228,9 +228,9 @@ ephy_embed_base_init (gpointer g_class) EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EphyEmbedClass, dom_mouse_click), - NULL, NULL, - ephy_marshal_INT__OBJECT, - G_TYPE_INT, + g_signal_accumulator_true_handled, NULL, + ephy_marshal_BOOLEAN__OBJECT, + G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); ephy_embed_signals[DOM_MOUSE_DOWN] = @@ -238,9 +238,9 @@ ephy_embed_base_init (gpointer g_class) EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EphyEmbedClass, dom_mouse_down), - NULL, NULL, - ephy_marshal_INT__OBJECT, - G_TYPE_INT, + g_signal_accumulator_true_handled, NULL, + ephy_marshal_BOOLEAN__OBJECT, + G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); ephy_embed_signals[SECURITY_CHANGE] = diff --git a/lib/ephy-marshal.list b/lib/ephy-marshal.list index 622acfd50..3c5ffae41 100644 --- a/lib/ephy-marshal.list +++ b/lib/ephy-marshal.list @@ -1,18 +1,7 @@ -VOID:VOID -VOID:STRING -VOID:OBJECT -VOID:OBJECT, POINTER -VOID:OBJECT,OBJECT,INT -VOID:OBJECT,STRING,INT -VOID:OBJECT,INT -VOID:OBJECT,INT,INT -VOID:POINTER,INT -VOID:STRING,INT,INT -VOID:STRING,INT -VOID:STRING,STRING INT:STRING +BOOLEAN:OBJECT VOID:INT,INT -VOID:INT,INT,INT -INT:OBJECT +VOID:POINTER,INT VOID:POINTER,POINTER -VOID:FLOAT +VOID:STRING,INT +VOID:STRING,INT,INT diff --git a/lib/widgets/ephy-arrow-toolbutton.c b/lib/widgets/ephy-arrow-toolbutton.c index 147c7d80b..0aa905efa 100644 --- a/lib/widgets/ephy-arrow-toolbutton.c +++ b/lib/widgets/ephy-arrow-toolbutton.c @@ -114,7 +114,7 @@ ephy_arrow_toolbutton_class_init (EphyArrowToolButtonClass *klass) G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST | G_SIGNAL_RUN_CLEANUP, G_STRUCT_OFFSET (EphyArrowToolButtonClass, menu_activated), NULL, NULL, - ephy_marshal_VOID__VOID, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_type_class_add_private (object_class, sizeof (EphyArrowToolButtonPrivate)); diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 6567d12ed..14be45a87 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -142,7 +142,7 @@ ephy_notebook_class_init (EphyNotebookClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyNotebookClass, tab_added), NULL, NULL, - ephy_marshal_VOID__OBJECT, + g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GTK_TYPE_WIDGET); @@ -152,7 +152,7 @@ ephy_notebook_class_init (EphyNotebookClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyNotebookClass, tab_removed), NULL, NULL, - ephy_marshal_VOID__OBJECT, + g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GTK_TYPE_WIDGET); @@ -162,7 +162,7 @@ ephy_notebook_class_init (EphyNotebookClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyNotebookClass, tab_detached), NULL, NULL, - ephy_marshal_VOID__OBJECT, + g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GTK_TYPE_WIDGET); @@ -172,7 +172,7 @@ ephy_notebook_class_init (EphyNotebookClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EphyNotebookClass, tabs_reordered), NULL, NULL, - ephy_marshal_VOID__VOID, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -- cgit v1.2.3