aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-02 04:08:38 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-02 04:08:38 +0800
commit2a830a379ab4c38b512ee521ccf10ba9cb28da53 (patch)
tree5ab90ff00c245743162cbf9f42951ca12c7cc090 /embed/mozilla/mozilla-embed.cpp
parent66677ed1062c18fd63cb13ea9480343a01058c96 (diff)
downloadgsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.tar
gsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.tar.gz
gsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.tar.bz2
gsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.tar.lz
gsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.tar.xz
gsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.tar.zst
gsoc2013-epiphany-2a830a379ab4c38b512ee521ccf10ba9cb28da53.zip
Cleanup unused code. Reorder build. In new bookmark dialog enter activate
2003-01-01 Marco Pesenti Gritti <marco@it.gnome.org> * embed/Makefile.am: * embed/ephy-embed-favicon.c: (location_changed_cb), (favicon_cb): * embed/ephy-embed-popup.c: (embed_popup_copy_location_cmd), (embed_popup_save_page_as_cmd), (embed_popup_open_frame_cmd): * embed/ephy-embed-shell.c: (ephy_embed_shell_free_cookies): * embed/ephy-embed-shell.h: * embed/ephy-embed-utils.c: (ephy_embed_utils_save): * embed/ephy-embed.c: (ephy_embed_get_location), (ephy_embed_shistory_copy): * embed/ephy-embed.h: * embed/mozilla/EphyWrapper.cpp: * embed/mozilla/EphyWrapper.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed-shell.cpp: * embed/mozilla/mozilla-embed.cpp: * lib/Makefile.am: * lib/toolbar/Makefile.am: * lib/widgets/Makefile.am: * src/Makefile.am: * src/bookmarks/ephy-new-bookmark.c: (build_editing_table): * src/ephy-nautilus-view.c: (gnv_embed_location_cb), (gnv_popup_cmd_frame_in_new_window): * src/ephy-shell.c: (build_homepage_url): * src/ephy-tab.c: (ephy_tab_location_cb): * src/pdm-dialog.c: (pdm_dialog_cookie_add): * src/popup-commands.c: (popup_cmd_frame_in_new_tab), (popup_cmd_frame_in_new_window): Cleanup unused code. Reorder build. In new bookmark dialog enter activate ok.
Diffstat (limited to 'embed/mozilla/mozilla-embed.cpp')
-rw-r--r--embed/mozilla/mozilla-embed.cpp93
1 files changed, 4 insertions, 89 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index d3d2277b0..66330db4a 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -93,7 +93,6 @@ impl_get_title (EphyEmbed *embed,
static gresult
impl_get_location (EphyEmbed *embed,
gboolean toplevel,
- gboolean requested,
char **location);
static gresult
impl_reload (EphyEmbed *embed,
@@ -102,12 +101,6 @@ static gresult
impl_copy_page (EphyEmbed *dest,
EphyEmbed *source,
EmbedDisplayType display_type);
-static gresult
-impl_grab_focus (EphyEmbed *embed);
-static gresult
-impl_get_link_tags (EphyEmbed *embed,
- const char *link_type,
- GList **tags);
static gresult
impl_zoom_set (EphyEmbed *embed,
int zoom,
@@ -148,12 +141,6 @@ static gboolean
impl_shistory_copy (EphyEmbed *source,
EphyEmbed *dest);
static gresult
-impl_scroll (EphyEmbed *embed,
- EmbedScrollDirection direction);
-static gresult
-impl_fine_scroll (EphyEmbed *embed,
- int horiz, int vert);
-static gresult
impl_get_security_level (EphyEmbed *embed,
EmbedSecurityLevel *level,
char **description);
@@ -325,8 +312,6 @@ ephy_embed_init (EphyEmbedClass *embed_class)
embed_class->get_location = impl_get_location;
embed_class->reload = impl_reload;
embed_class->copy_page = impl_copy_page;
- embed_class->grab_focus = impl_grab_focus;
- embed_class->get_link_tags = impl_get_link_tags;
embed_class->zoom_set = impl_zoom_set;
embed_class->zoom_get = impl_zoom_get;
embed_class->selection_can_cut = impl_selection_can_cut;
@@ -340,8 +325,6 @@ ephy_embed_init (EphyEmbedClass *embed_class)
embed_class->shistory_get_pos = impl_shistory_get_pos;
embed_class->shistory_go_nth = impl_shistory_go_nth;
embed_class->shistory_copy = impl_shistory_copy;
- embed_class->scroll = impl_scroll;
- embed_class->fine_scroll = impl_fine_scroll;
embed_class->get_security_level = impl_get_security_level;
embed_class->find = impl_find;
embed_class->set_charset = impl_set_charset;
@@ -462,8 +445,6 @@ impl_get_capabilities (EphyEmbed *embed,
EMBED_ZOOM_CAP |
EMBED_PRINT_CAP |
EMBED_FIND_CAP |
- EMBED_SCROLL_CAP |
- EMBED_FINE_SCROLL_CAP |
EMBED_SECURITY_CAP |
EMBED_CHARSET_CAP |
EMBED_SHISTORY_CAP );
@@ -523,7 +504,7 @@ impl_can_go_up (EphyEmbed *embed)
char *s;
gresult result;
- if (ephy_embed_get_location (embed, TRUE, FALSE, &location) != G_OK)
+ if (ephy_embed_get_location (embed, TRUE, &location) != G_OK)
return G_FAILED;
g_return_val_if_fail (location != NULL, G_FAILED);
if ((s = mozilla_embed_get_uri_parent (location)) != NULL)
@@ -547,7 +528,7 @@ impl_get_go_up_list (EphyEmbed *embed, GSList **l)
char *location;
char *s;
- if (ephy_embed_get_location (embed, TRUE, FALSE, &location) != G_OK)
+ if (ephy_embed_get_location (embed, TRUE, &location) != G_OK)
return G_FAILED;
g_return_val_if_fail (location != NULL, G_FAILED);
@@ -586,7 +567,7 @@ impl_go_up (EphyEmbed *embed)
char *uri;
char *parent_uri;
- ephy_embed_get_location (embed, TRUE, FALSE, &uri);
+ ephy_embed_get_location (embed, TRUE, &uri);
g_return_val_if_fail (uri != NULL, G_FAILED);
parent_uri = mozilla_embed_get_uri_parent (uri);
@@ -708,7 +689,6 @@ impl_get_title (EphyEmbed *embed,
static gresult
impl_get_location (EphyEmbed *embed,
gboolean toplevel,
- gboolean requested,
char **location)
{
char *l;
@@ -726,25 +706,17 @@ impl_get_location (EphyEmbed *embed,
return G_FAILED;
}
- /* FIXME !toplevel requested not implemented */
-
if (toplevel)
{
l = gtk_moz_embed_get_location
(GTK_MOZ_EMBED(embed));
}
- else if (!toplevel)
+ else
{
rv = wrapper->GetDocumentUrl (url);
l = (NS_SUCCEEDED (rv) && !url.IsEmpty()) ?
g_strdup (url.get()) : NULL;
}
- else if (requested)
- {
- rv = wrapper->GetRealURL (url);
- l = (NS_SUCCEEDED (rv) && !url.IsEmpty()) ?
- g_strdup (url.get()) : NULL;
- }
*location = l;
@@ -804,22 +776,6 @@ impl_copy_page (EphyEmbed *dest,
return G_OK;
}
-static gresult
-impl_grab_focus (EphyEmbed *embed)
-{
- gtk_widget_grab_focus (GTK_BIN (embed)->child);
-
- return G_OK;
-}
-
-static gresult
-impl_get_link_tags (EphyEmbed *embed,
- const char *link_type,
- GList **tags)
-{
- return G_NOT_IMPLEMENTED;
-}
-
static gresult
impl_zoom_set (EphyEmbed *embed,
int zoom,
@@ -1079,47 +1035,6 @@ impl_shistory_copy (EphyEmbed *source,
}
static gresult
-impl_scroll (EphyEmbed *embed,
- EmbedScrollDirection direction)
-{
- EphyWrapper *wrapper;
-
- wrapper = MOZILLA_EMBED(embed)->priv->wrapper;
- g_return_val_if_fail (wrapper != NULL, G_FAILED);
-
- switch (direction)
- {
- case EMBED_SCROLL_UP:
- wrapper->ScrollUp ();
- break;
- case EMBED_SCROLL_DOWN:
- wrapper->ScrollDown ();
- break;
- case EMBED_SCROLL_LEFT:
- wrapper->ScrollLeft ();
- break;
- case EMBED_SCROLL_RIGHT:
- wrapper->ScrollRight ();
- break;
- }
-
- return G_OK;
-}
-
-static gresult
-impl_fine_scroll (EphyEmbed *embed, int horiz, int vert)
-{
- EphyWrapper *wrapper;
-
- wrapper = MOZILLA_EMBED(embed)->priv->wrapper;
- g_return_val_if_fail (wrapper != NULL, G_FAILED);
-
- wrapper->FineScroll (horiz, vert);
-
- return G_OK;
-}
-
-static gresult
impl_get_security_level (EphyEmbed *embed,
EmbedSecurityLevel *level,
char **description)