diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | embed/ephy-command-manager.c | 11 | ||||
-rw-r--r-- | embed/ephy-embed-persist.c | 25 | ||||
-rw-r--r-- | embed/ephy-embed.c | 36 |
4 files changed, 19 insertions, 61 deletions
@@ -1,5 +1,13 @@ 2003-11-20 Marco Pesenti Gritti <marco@gnome.org> + * embed/ephy-command-manager.c: (ephy_command_manager_base_init): + * embed/ephy-embed-persist.c: (ephy_embed_persist_class_init): + * embed/ephy-embed.c: (ephy_embed_base_init): + + Not necessary to store signal id in an array for interfaces. + +2003-11-20 Marco Pesenti Gritti <marco@gnome.org> + * src/ephy-session.c: (ephy_session_save): hrm misplaced free in last commit diff --git a/embed/ephy-command-manager.c b/embed/ephy-command-manager.c index 68ca46510..b92726a77 100644 --- a/embed/ephy-command-manager.c +++ b/embed/ephy-command-manager.c @@ -24,17 +24,9 @@ #include "ephy-command-manager.h" -enum -{ - COMMAND_CHANGED, - LAST_SIGNAL -}; - static void ephy_command_manager_base_init (gpointer base_class); -static guint ephy_command_manager_signals[LAST_SIGNAL] = { 0 }; - GType ephy_command_manager_get_type (void) { @@ -65,7 +57,6 @@ ephy_command_manager_base_init (gpointer g_class) if (!initialized) { - ephy_command_manager_signals[COMMAND_CHANGED] = g_signal_new ("command_changed", EPHY_TYPE_COMMAND_MANAGER, G_SIGNAL_RUN_FIRST, @@ -75,7 +66,7 @@ ephy_command_manager_base_init (gpointer g_class) G_TYPE_NONE, 1, G_TYPE_STRING); - initialized = TRUE; + initialized = TRUE; } } diff --git a/embed/ephy-embed-persist.c b/embed/ephy-embed-persist.c index 1ffa39cc6..41224a38e 100644 --- a/embed/ephy-embed-persist.c +++ b/embed/ephy-embed-persist.c @@ -58,14 +58,6 @@ struct EphyEmbedPersistPrivate static void ephy_embed_persist_class_init (EphyEmbedPersistClass *klass); static void ephy_embed_persist_init (EphyEmbedPersist *ges); -enum -{ - COMPLETED, - LAST_SIGNAL -}; - -static guint ephy_embed_persist_signals[LAST_SIGNAL] = { 0 }; - static GObjectClass *parent_class = NULL; GType @@ -349,15 +341,14 @@ ephy_embed_persist_class_init (EphyEmbedPersistClass *klass) object_class->get_property = ephy_embed_persist_get_property; /* init signals */ - ephy_embed_persist_signals[COMPLETED] = - g_signal_new ("completed", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EphyEmbedPersistClass, completed), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, - 0); + g_signal_new ("completed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EphyEmbedPersistClass, completed), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); g_object_class_install_property (object_class, PROP_DEST, diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index f03031b90..78f137fe1 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -28,29 +28,7 @@ #include "mozilla-embed-single.h" #include "mozilla-embed.h" -enum -{ - NEW_WINDOW, - CONTEXT_MENU, - FAVICON, - LOCATION, - TITLE, - PROGRESS, - NET_STATE, - VISIBILITY, - DESTROY_BRSR, - OPEN_URI, - SIZE_TO, - DOM_MOUSE_CLICK, - DOM_MOUSE_DOWN, - SECURITY_CHANGE, - ZOOM_CHANGE, - LAST_SIGNAL -}; - -static guint ephy_embed_signals[LAST_SIGNAL] = { 0 }; - -static void ephy_embed_base_init (gpointer base_class); +static void ephy_embed_base_init (gpointer base_class); GType ephy_embed_get_type (void) @@ -82,7 +60,6 @@ ephy_embed_base_init (gpointer g_class) if (!initialized) { - ephy_embed_signals[NEW_WINDOW] = g_signal_new ("ge_new_window", EPHY_TYPE_EMBED, G_SIGNAL_RUN_FIRST, @@ -93,7 +70,6 @@ ephy_embed_base_init (gpointer g_class) 2, G_TYPE_POINTER, G_TYPE_INT); - ephy_embed_signals[CONTEXT_MENU] = g_signal_new ("ge_context_menu", EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, @@ -103,7 +79,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_BOOLEAN, 1, G_TYPE_OBJECT); - ephy_embed_signals[FAVICON] = g_signal_new ("ge_favicon", EPHY_TYPE_EMBED, G_SIGNAL_RUN_FIRST, @@ -113,7 +88,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_NONE, 1, G_TYPE_STRING); - ephy_embed_signals[LOCATION] = g_signal_new ("ge_location", EPHY_TYPE_EMBED, G_SIGNAL_RUN_FIRST, @@ -123,7 +97,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_NONE, 1, G_TYPE_STRING); - ephy_embed_signals[NET_STATE] = g_signal_new ("ge_net_state", EPHY_TYPE_EMBED, G_SIGNAL_RUN_FIRST, @@ -134,7 +107,6 @@ ephy_embed_base_init (gpointer g_class) 2, G_TYPE_STRING, G_TYPE_INT); - ephy_embed_signals[OPEN_URI] = g_signal_new ("ge_open_uri", EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, @@ -144,7 +116,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_INT, 1, G_TYPE_STRING); - ephy_embed_signals[DOM_MOUSE_CLICK] = g_signal_new ("ge_dom_mouse_click", EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, @@ -154,7 +125,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); - ephy_embed_signals[DOM_MOUSE_DOWN] = g_signal_new ("ge_dom_mouse_down", EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, @@ -164,7 +134,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); - ephy_embed_signals[SECURITY_CHANGE] = g_signal_new ("ge_security_change", EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, @@ -174,7 +143,6 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_NONE, 1, G_TYPE_INT); - ephy_embed_signals[ZOOM_CHANGE] = g_signal_new ("ge_zoom_change", EPHY_TYPE_EMBED, G_SIGNAL_RUN_LAST, @@ -184,7 +152,7 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_NONE, 1, G_TYPE_FLOAT); - initialized = TRUE; + initialized = TRUE; } } |