aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-21 02:46:38 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-21 02:46:38 +0800
commit70c88252fb1eb732104f1523a5515bf556a3438c (patch)
treec26793a71991513fdb89a18301e48c0bfaef40f3 /embed/ephy-embed.c
parent60b00e6452f9beb0886661d12140e613c2770b0a (diff)
downloadgsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.tar
gsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.tar.gz
gsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.tar.bz2
gsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.tar.lz
gsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.tar.xz
gsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.tar.zst
gsoc2013-epiphany-70c88252fb1eb732104f1523a5515bf556a3438c.zip
Not necessary to store signal id in an array for interfaces.
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.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c36
1 files changed, 2 insertions, 34 deletions
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;
}
}