aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2003-04-17 02:41:06 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-17 02:41:06 +0800
commite89d190c6c6ecaaa4e367835c5fddb549325b3f2 (patch)
tree98e2637b3c7e4625a952af59a1bbe4bc0167493f /embed
parent8b70f35b46a84e6ebaf11471e707b8fe2dcdb4c7 (diff)
downloadgsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.tar
gsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.tar.gz
gsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.tar.bz2
gsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.tar.lz
gsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.tar.xz
gsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.tar.zst
gsoc2013-epiphany-e89d190c6c6ecaaa4e367835c5fddb549325b3f2.zip
Moved the new_window_orphan signal to EphyEmbedSingle.
2003-04-16 Dave Camp <dave@ximian.com> * embed/ephy-embed-shell.c: (ephy_embed_shell_class_init): * embed/ephy-embed-single.c: (ephy_embed_single_class_init): * src/ephy-shell.c: (ephy_shell_init): Moved the new_window_orphan signal to EphyEmbedSingle.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-shell.c12
-rw-r--r--embed/ephy-embed-shell.h4
-rw-r--r--embed/ephy-embed-single.c19
-rw-r--r--embed/ephy-embed-single.h5
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,