aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-10 03:40:18 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-10 03:40:18 +0800
commit237622044c96f0cfcba6d7fe21b908beb085b2e4 (patch)
tree06b0fb414cb8fb61020baa225106cbc267c2ce41 /embed
parent8103e076a47bcf1f9b9cab2d3c64f0e1f319cccc (diff)
downloadgsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.tar
gsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.tar.gz
gsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.tar.bz2
gsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.tar.lz
gsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.tar.xz
gsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.tar.zst
gsoc2013-epiphany-237622044c96f0cfcba6d7fe21b908beb085b2e4.zip
Rehash link context menu order to be hig compliant. Set a desktop icon.
2003-01-09 Marco Pesenti Gritti <marco@it.gnome.org> * data/art/Makefile.am: * data/epiphany.desktop.in: * data/ui/epiphany-ui.xml.in: * embed/ephy-embed-popup.c: (embed_popup_open_link_cmd): * src/ephy-main.c: (main): * src/window-commands.c: (window_cmd_set_charset): Rehash link context menu order to be hig compliant. Set a desktop icon.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-popup.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/embed/ephy-embed-popup.c b/embed/ephy-embed-popup.c
index 5f6eddf41..cf9c5fee0 100644
--- a/embed/ephy-embed-popup.c
+++ b/embed/ephy-embed-popup.c
@@ -65,6 +65,10 @@ embed_popup_copy_link_location_cmd (BonoboUIComponent *uic,
EphyEmbedPopup *popup,
const char* verbname);
static void
+embed_popup_open_link_cmd (BonoboUIComponent *uic,
+ EphyEmbedPopup *popup,
+ const char* verbname);
+static void
embed_popup_download_link_cmd (BonoboUIComponent *uic,
EphyEmbedPopup *popup,
const char* verbname);
@@ -122,6 +126,7 @@ static GObjectClass *parent_class = NULL;
BonoboUIVerb embed_popup_verbs [] = {
BONOBO_UI_VERB ("EPCopyLinkLocation", (BonoboUIVerbFn)embed_popup_copy_link_location_cmd),
BONOBO_UI_VERB ("EPDownloadLink", (BonoboUIVerbFn)embed_popup_download_link_cmd),
+ BONOBO_UI_VERB ("EPOpenLink", (BonoboUIVerbFn)embed_popup_open_link_cmd),
BONOBO_UI_VERB ("EPOpenImage", (BonoboUIVerbFn)embed_popup_open_image_cmd),
BONOBO_UI_VERB ("EPSaveImageAs", (BonoboUIVerbFn)embed_popup_save_image_as_cmd),
BONOBO_UI_VERB ("EPSetImageAsBackground", (BonoboUIVerbFn)embed_popup_set_image_as_background_cmd),
@@ -433,6 +438,22 @@ ephy_embed_popup_get_popup_path (EphyEmbedPopup *p)
/* commands */
static void
+embed_popup_open_link_cmd (BonoboUIComponent *uic,
+ EphyEmbedPopup *popup,
+ const char* verbname)
+{
+ EphyEmbedEvent *info;
+ const char *location;
+ GValue *value;
+
+ info = ephy_embed_popup_get_event (popup);
+ ephy_embed_event_get_property (info, "link", &value);
+ location = g_value_get_string (value);
+
+ ephy_embed_load_url (popup->priv->embed, location);
+}
+
+static void
embed_popup_download_link_cmd (BonoboUIComponent *uic,
EphyEmbedPopup *popup,
const char* verbname)