diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2005-01-02 05:32:57 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2005-01-02 05:32:57 +0800 |
commit | 8999f2e890891e4286f501d2076716d523c7d169 (patch) | |
tree | fb44fc505779c839c0ee36dbf9d82772f8e470cb /embed/ephy-embed-single.c | |
parent | 478e8b73f9a7302f0c30aaa685fc3104b99d7480 (diff) | |
download | gsoc2013-epiphany-8999f2e890891e4286f501d2076716d523c7d169.tar.gz gsoc2013-epiphany-8999f2e890891e4286f501d2076716d523c7d169.tar.zst gsoc2013-epiphany-8999f2e890891e4286f501d2076716d523c7d169.zip |
Add an "add-sidebar" signal on the EphyEmbedSingle interface, it gets
2005-01-01 Crispin Flowerday <gnome@flowerday.cx>
* embed/ephy-embed-single.c: (ephy_embed_single_iface_init):
* embed/ephy-embed-single.h:
* embed/mozilla/EphySidebar.cpp:
* embed/mozilla/EphySidebar.h:
* embed/mozilla/Makefile.am:
* embed/mozilla/MozRegisterComponents.cpp:
Add an "add-sidebar" signal on the EphyEmbedSingle interface,
it gets emitted when a user clicks on a link that wants
to add a url to the sidebar.
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r-- | embed/ephy-embed-single.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index 9f07d7aa7..012b11795 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -96,6 +96,26 @@ ephy_embed_single_iface_init (gpointer g_class) 1, G_TYPE_BOOLEAN); +/** + * EphyEmbedSingle::add-sidebar: + * @single: + * @url: The url of the sidebar to be added + * @title: The title of the sidebar to be added + * + * The ::add-sidebar signal is emitted when the user clicks a javascript link that + * requests adding a url to the sidebar. + **/ + g_signal_new ("add-sidebar", + EPHY_TYPE_EMBED_SINGLE, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EphyEmbedSingleIface, add_sidebar), + g_signal_accumulator_true_handled, NULL, + ephy_marshal_BOOLEAN__STRING_STRING, + G_TYPE_BOOLEAN, + 2, + G_TYPE_STRING, + G_TYPE_STRING); + initialised = TRUE; } } |