diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-shell.c | 12 | ||||
-rw-r--r-- | embed/ephy-embed-shell.h | 4 | ||||
-rw-r--r-- | embed/ephy-embed-single.c | 19 | ||||
-rw-r--r-- | embed/ephy-embed-single.h | 5 |
4 files changed, 24 insertions, 16 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 3569590fa..37f57a1bf 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -28,7 +28,6 @@ enum { - NEW_WINDOW, COMMAND, LAST_SIGNAL }; @@ -98,17 +97,6 @@ ephy_embed_shell_class_init (EphyEmbedShellClass *klass) klass->get_downloader_view = impl_get_downloader_view; klass->get_global_history = impl_get_global_history; - ephy_embed_shell_signals[NEW_WINDOW] = - g_signal_new ("new_window_orphan", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EphyEmbedShellClass, new_window), - NULL, NULL, - ephy_marshal_VOID__POINTER_INT, - G_TYPE_NONE, - 2, - G_TYPE_POINTER, - G_TYPE_INT); ephy_embed_shell_signals[COMMAND] = g_signal_new ("command", G_OBJECT_CLASS_TYPE (object_class), diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h index a5027bdfc..95bc2a160 100644 --- a/embed/ephy-embed-shell.h +++ b/embed/ephy-embed-shell.h @@ -55,10 +55,6 @@ struct EphyEmbedShellClass { GObjectClass parent_class; - void (* new_window) (EphyEmbedShell *shell, - EphyEmbed **new_embed, - EmbedChromeMask chromemask); - void (* command) (EphyEmbedShell *shell, char *command, char *param); diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index dd83b8039..071ed1b48 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -26,6 +26,12 @@ #include <string.h> +enum +{ + NEW_WINDOW, + LAST_SIGNAL +}; + struct EphyEmbedSinglePrivate { EphyHistory *global_history; @@ -42,6 +48,7 @@ static void ephy_embed_single_finalize (GObject *object); static GObjectClass *parent_class = NULL; +static guint ephy_embed_single_signals[LAST_SIGNAL] = { 0 }; GType ephy_embed_single_get_type (void) @@ -79,6 +86,18 @@ ephy_embed_single_class_init (EphyEmbedSingleClass *klass) parent_class = (GObjectClass *) g_type_class_peek_parent (klass); object_class->finalize = ephy_embed_single_finalize; + + ephy_embed_single_signals[NEW_WINDOW] = + g_signal_new ("new_window_orphan", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EphyEmbedSingleClass, new_window), + NULL, NULL, + ephy_marshal_VOID__POINTER_INT, + G_TYPE_NONE, + 2, + G_TYPE_POINTER, + G_TYPE_INT); } static void diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h index d685ac475..174158db7 100644 --- a/embed/ephy-embed-single.h +++ b/embed/ephy-embed-single.h @@ -119,6 +119,11 @@ struct EphyEmbedSingleClass { GObjectClass parent_class; + /* Signals */ + void (* new_window) (EphyEmbedSingle *shell, + EphyEmbed **new_embed, + EmbedChromeMask chromemask); + /* Methods */ gresult (* clear_cache) (EphyEmbedSingle *shell, |