diff options
-rw-r--r-- | ChangeLog | 11 | ||||
-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 |
4 files changed, 27 insertions, 6 deletions
@@ -1,5 +1,16 @@ 2004-02-29 Christian Persch <chpe@cvs.gnome.org> + * embed/ephy-embed-persist.c: (ephy_embed_persist_class_init): + * embed/ephy-embed-persist.h: + + Add "cancelled" signal to EphyEmbedPersist. + + * embed/mozilla/mozilla-embed-persist.cpp: + + Emit "cancelled" signal when the download is cancelled. + +2004-02-29 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/mozilla-embed-event.cpp: (mozilla_embed_event_init), (mozilla_embed_event_finalize), (mozilla_embed_event_set_property): 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); } |