diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-persist.c | 20 | ||||
-rw-r--r-- | embed/ephy-embed-persist.h | 1 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 1 |
3 files changed, 16 insertions, 6 deletions
diff --git a/embed/ephy-embed-persist.c b/embed/ephy-embed-persist.c index 4fed96cbb..5431af1d9 100644 --- a/embed/ephy-embed-persist.c +++ b/embed/ephy-embed-persist.c @@ -63,9 +63,9 @@ static GObjectClass *parent_class = NULL; GType ephy_embed_persist_get_type (void) { - static GType ephy_embed_persist_type = 0; + static GType type = 0; - if (ephy_embed_persist_type == 0) + if (type == 0) { static const GTypeInfo our_info = { @@ -80,12 +80,12 @@ ephy_embed_persist_get_type (void) (GInstanceInitFunc) ephy_embed_persist_init }; - ephy_embed_persist_type = g_type_register_static (G_TYPE_OBJECT, - "EphyEmbedPersist", - &our_info, 0); + type = g_type_register_static (G_TYPE_OBJECT, + "EphyEmbedPersist", + &our_info, 0); } - return ephy_embed_persist_type; + return type; } void @@ -349,6 +349,14 @@ ephy_embed_persist_class_init (EphyEmbedPersistClass *klass) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); + g_signal_new ("cancelled", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EphyEmbedPersistClass, cancelled), + 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-persist.h b/embed/ephy-embed-persist.h index 7e3b0180b..dbd0272ae 100644 --- a/embed/ephy-embed-persist.h +++ b/embed/ephy-embed-persist.h @@ -63,6 +63,7 @@ struct EphyEmbedPersistClass GObjectClass parent_class; void (* completed) (EphyEmbedPersist *persist); + void (* cancelled) (EphyEmbedPersist *persist); /* Methods */ diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp index 5828a92ae..b3620b3fc 100644 --- a/embed/mozilla/mozilla-embed-persist.cpp +++ b/embed/mozilla/mozilla-embed-persist.cpp @@ -111,6 +111,7 @@ mozilla_embed_persist_completed (MozillaEmbedPersist *persist) void mozilla_embed_persist_cancelled (MozillaEmbedPersist *persist) { + g_signal_emit_by_name (persist, "cancelled"); g_object_unref (persist); } |