aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-20 00:34:55 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-20 00:34:55 +0800
commitdc85f85488cc9cf4ef1c665ec624a4a48ba27d65 (patch)
tree17f2395df7101fdd114b92e622caeb4b3bc30cef
parent0d661cce429a4bd8bbe4e521d86cd862ecd067db (diff)
downloadgsoc2013-epiphany-dc85f85488cc9cf4ef1c665ec624a4a48ba27d65.tar.gz
gsoc2013-epiphany-dc85f85488cc9cf4ef1c665ec624a4a48ba27d65.tar.zst
gsoc2013-epiphany-dc85f85488cc9cf4ef1c665ec624a4a48ba27d65.zip
Dont have a separate context menu for copy, just put it inside the
2003-02-19 Marco Pesenti Gritti <marco@it.gnome.org> * data/ui/epiphany-ui.xml.in: * src/ephy-tab.c: (ephy_tab_show_embed_popup): * src/ephy-window.c: * src/popup-commands.c: * src/window-commands.c: Dont have a separate context menu for copy, just put it inside the document one
-rw-r--r--ChangeLog11
-rw-r--r--data/ui/epiphany-ui.xml.in8
-rw-r--r--src/ephy-tab.c7
-rw-r--r--src/ephy-window.c2
-rw-r--r--src/popup-commands.c15
-rw-r--r--src/window-commands.c17
6 files changed, 16 insertions, 44 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a3937757..58961aa4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-02-19 Marco Pesenti Gritti <marco@it.gnome.org>
+
+ * data/ui/epiphany-ui.xml.in:
+ * src/ephy-tab.c: (ephy_tab_show_embed_popup):
+ * src/ephy-window.c:
+ * src/popup-commands.c:
+ * src/window-commands.c:
+
+ Dont have a separate context menu for copy, just
+ put it inside the document one
+
2003-02-19 Dave Bordoley <bordoley@msu.edu>
* data/ui/epiphany-bookmark-editor-ui.xml.in
diff --git a/data/ui/epiphany-ui.xml.in b/data/ui/epiphany-ui.xml.in
index 04009d3c7..dc8e97242 100644
--- a/data/ui/epiphany-ui.xml.in
+++ b/data/ui/epiphany-ui.xml.in
@@ -91,10 +91,11 @@
<menuitem name="GoForwardDP" verb="GoForward"/>
<menuitem name="GoReloadDP" verb="ViewReload"/>
<separator name="DPSep1"/>
+ <menuitem name="EditCopyDP" verb="EditCopy"/>
+ <separator name="DPSep2"/>
<menuitem name="SavePageAsDP" verb="FileSaveAs"/>
<menuitem name="SaveBackgroundAsDP" verb="SaveBackgroundAs"/>
<menuitem name="BookmarkPageDP" verb="FileBookmarkPage"/>
- <menuitem name="CopyPageLocationDP" verb="CopyPageLocation"/>
</popup>
<popup name="EphyFramedDocumentPopup" verb="FakeToplevel">
@@ -102,11 +103,12 @@
<menuitem name="GoForwardFDP" verb="GoForward"/>
<menuitem name="GoReloadFDP" verb="ViewReload"/>
<separator name="FDPSep1"/>
+ <menuitem name="EditCopyFDP" verb="EditCopy"/>
+ <separator name="FDPSep2"/>
<menuitem name="SavePageAsFDP" verb="FileSaveAs"/>
<menuitem name="SaveBackgroundAsFDP" verb="SaveBackgroundAs"/>
<menuitem name="BookmarkPageFDP" verb="FileBookmarkPage"/>
- <menuitem name="CopyPageLocationFDP" verb="CopyPageLocation"/>
- <separator name="FDBSep2"/>
+ <separator name="FDBSep3"/>
<menuitem name="OpenFrameFDP" verb="OpenFrame"/>
<menuitem name="OpenFrameInNewWindowFDP" verb="OpenFrameInNewWindow"/>
<menuitem name="OpenFrameInNewTabFDP" verb="OpenFrameInNewTab"/>
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index be1942629..578fe6a75 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -849,15 +849,12 @@ ephy_tab_show_embed_popup (EphyTab *tab, EphyEmbedEvent *event)
EphyWindow *window;
char *path;
GtkWidget *widget;
- gresult can_copy;
window = ephy_tab_get_window (tab);
ephy_embed_event_get_property (event, "framed_page", &value);
framed = g_value_get_int (value);
- can_copy = ephy_embed_selection_can_copy (tab->priv->embed);
-
ephy_embed_event_get_context (event, &context);
if ((context & EMBED_CONTEXT_LINK) &&
@@ -877,10 +874,6 @@ ephy_tab_show_embed_popup (EphyTab *tab, EphyEmbedEvent *event)
{
popup = "EphyInputPopup";
}
- else if (can_copy == G_OK)
- {
- popup = "EphyTextPopup";
- }
else
{
popup = framed ? "EphyFramedDocumentPopup" :
diff --git a/src/ephy-window.c b/src/ephy-window.c
index cd6113412..a1d29a28b 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -212,8 +212,6 @@ static EggActionGroupEntry ephy_popups_entries [] = {
/* Document */
{ "SaveBackgroundAs", N_("_Save Background As..."), NULL, NULL,
NULL, G_CALLBACK (popup_cmd_save_background_as), NULL },
- { "CopyPageLocation", N_("_Copy Page Location"), GTK_STOCK_COPY, NULL,
- NULL, G_CALLBACK (popup_cmd_copy_page_location), NULL },
/* Framed document */
{ "OpenFrame", N_("_Open Frame"), NULL, NULL,
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 1188f0573..7b5a6ffe0 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -218,21 +218,6 @@ popup_cmd_copy_to_clipboard (EphyWindow *window, const char *text)
}
void
-popup_cmd_copy_page_location (EggAction *action,
- EphyWindow *window)
-{
- char *location;
- EphyEmbed *embed;
-
- embed = ephy_window_get_active_embed (window);
- g_return_if_fail (embed != NULL);
-
- ephy_embed_get_location (embed, FALSE, &location);
- popup_cmd_copy_to_clipboard (window, location);
- g_free (location);
-}
-
-void
popup_cmd_copy_email (EggAction *action,
EphyWindow *window)
{
diff --git a/src/window-commands.c b/src/window-commands.c
index c5ea747a3..8d335fe6d 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -41,23 +41,6 @@
#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkeditable.h>
-#define AVAILABLE_TOOLBAR_ITEMS \
- "back=navigation_button(direction=back,arrow=FALSE);" \
- "back_menu=navigation_button(direction=back,arrow=TRUE);" \
- "forward=navigation_button(direction=forward,arrow=FALSE);" \
- "forward_menu=navigation_button(direction=forward,arrow=TRUE);" \
- "up=navigation_button(direction=up,arrow=FALSE);" \
- "up_menu=navigation_button(direction=up,arrow=TRUE);" \
- "stop=std_toolitem(item=stop);" \
- "reload=std_toolitem(item=reload);" \
- "home=std_toolitem(item=home);" \
- "favicon=favicon;" \
- "location=location;" \
- "go=std_toolitem(item=go);" \
- "zoom=zoom;" \
- "spinner=spinner;" \
- "separator;"
-
void
window_cmd_edit_find (EggAction *action,
EphyWindow *window)