aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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
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')
-rw-r--r--embed/ephy-command-manager.c11
-rw-r--r--embed/ephy-embed-persist.c25
-rw-r--r--embed/ephy-embed.c36
3 files changed, 11 insertions, 61 deletions
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;
}
}