From 237622044c96f0cfcba6d7fe21b908beb085b2e4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 9 Jan 2003 19:40:18 +0000 Subject: Rehash link context menu order to be hig compliant. Set a desktop icon. 2003-01-09 Marco Pesenti Gritti * 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. --- embed/ephy-embed-popup.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'embed') 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), @@ -432,6 +437,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, -- cgit