diff options
author | Xan Lopez <xan@src.gnome.org> | 2007-10-26 04:01:31 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2007-10-26 04:01:31 +0800 |
commit | 01b8291ec0dbdb52400a21cda7d8785b8fb6da4e (patch) | |
tree | 5e26949d3abec2100a43e654de84c76d9845340f /embed | |
parent | cc62537ebba1ba9ab31cc3da32ddf51556045caa (diff) | |
download | gsoc2013-epiphany-01b8291ec0dbdb52400a21cda7d8785b8fb6da4e.tar.gz gsoc2013-epiphany-01b8291ec0dbdb52400a21cda7d8785b8fb6da4e.tar.zst gsoc2013-epiphany-01b8291ec0dbdb52400a21cda7d8785b8fb6da4e.zip |
Fix the remaining breakage.
Implement get_icon and get_icon_address.
Fix status-message canonical name.
Properly assign private pointer in MozillaEmbed (...)
svn path=/trunk/; revision=7565
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed.c | 4 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 27 |
2 files changed, 27 insertions, 4 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 6c6d4cdd8..058ced9fc 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -20,6 +20,8 @@ #include "config.h" +#include <gdk-pixbuf/gdk-pixbuf.h> + #include "ephy-embed.h" #include "ephy-zoom.h" @@ -486,7 +488,7 @@ ephy_embed_base_init (gpointer g_class) _("Blank page"), G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); g_object_interface_install_property (g_class, - g_param_spec_string ("status message", + g_param_spec_string ("status-message", "Status Message", "The embed's statusbar message", NULL, diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 3e5c926ec..2d38b16cc 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -395,8 +395,10 @@ mozilla_embed_class_init (MozillaEmbedClass *klass) g_object_class_override_property (object_class, PROP_ADDRESS, "address"); g_object_class_override_property (object_class, PROP_TYPED_ADDRESS, "typed-address"); g_object_class_override_property (object_class, PROP_TITLE, "title"); - g_object_class_override_property (object_class, PROP_STATUS_MESSAGE, "message"); + g_object_class_override_property (object_class, PROP_STATUS_MESSAGE, "status-message"); g_object_class_override_property (object_class, PROP_LINK_MESSAGE, "link-message"); + g_object_class_override_property (object_class, PROP_ICON, "icon"); + g_object_class_override_property (object_class, PROP_ICON_ADDRESS, "icon-address"); g_type_class_add_private (object_class, sizeof(MozillaEmbedPrivate)); } @@ -405,8 +407,9 @@ static void mozilla_embed_init (MozillaEmbed *embed) { EphyFaviconCache *cache; - MozillaEmbedPrivate *priv = embed->priv; - priv = MOZILLA_EMBED_GET_PRIVATE (embed); + MozillaEmbedPrivate *priv; + embed->priv = MOZILLA_EMBED_GET_PRIVATE (embed); + priv = embed->priv; priv->browser = new EphyBrowser (); g_signal_connect_object (embed, "location", @@ -1228,6 +1231,22 @@ impl_get_loading_title (EphyEmbed *embed) return priv->loading_title; } +static const char* +impl_get_icon_address (EphyEmbed *embed) +{ + MozillaEmbedPrivate *priv = MOZILLA_EMBED (embed)->priv; + + return priv->icon_address; +} + +static GdkPixbuf* +impl_get_icon (EphyEmbed *embed) +{ + MozillaEmbedPrivate *priv = MOZILLA_EMBED (embed)->priv; + + return priv->icon; +} + static void mozilla_embed_set_address (MozillaEmbed *embed, char *address) { @@ -2358,6 +2377,8 @@ ephy_embed_iface_init (EphyEmbedIface *iface) iface->get_status_message = impl_get_status_message; iface->get_is_blank = impl_get_is_blank; iface->get_loading_title = impl_get_loading_title; + iface->get_icon = impl_get_icon; + iface->get_icon_address = impl_get_icon_address; } static void |