aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-26 18:09:37 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-26 18:09:37 +0800
commitf532ac410a72d0f0948dfdfe2e4d157dcb5aadb5 (patch)
tree5874eb4c3265cacef981d4bbdd3f5c6f3f7f43a4 /src/ephy-window.c
parent89c7bdbe2be2c6bc866644da74a1846781e1764f (diff)
downloadgsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.tar
gsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.tar.gz
gsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.tar.bz2
gsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.tar.lz
gsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.tar.xz
gsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.tar.zst
gsoc2013-epiphany-f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5.zip
Restore clipboard actions in input context menu. Show it only if mozilla
2003-11-26 Marco Pesenti Gritti <marco@gnome.org> * data/ui/epiphany-ui.xml: * src/ephy-window.c: (update_edit_actions_sensitivity), (edit_menu_show_cb), (show_embed_popup): Restore clipboard actions in input context menu. Show it only if mozilla is recent enough though.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a8470b567..a74598f8d 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -567,9 +567,9 @@ ephy_window_state_event_cb (GtkWidget *widget, GdkEventWindowState *event, EphyW
return FALSE;
}
+
static void
-edit_menu_show_cb (GtkWidget *menu,
- EphyWindow *window)
+update_edit_actions_sensitivity (EphyWindow *window)
{
GtkWidget *widget = gtk_window_get_focus (GTK_WINDOW (window));
GtkActionGroup *action_group;
@@ -623,6 +623,13 @@ edit_menu_show_cb (GtkWidget *menu,
}
static void
+edit_menu_show_cb (GtkWidget *menu,
+ EphyWindow *window)
+{
+ update_edit_actions_sensitivity (window);
+}
+
+static void
edit_menu_hide_cb (GtkWidget *menu,
EphyWindow *window)
{
@@ -1076,10 +1083,13 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event)
{
popup = "/EphyImagePopup";
}
+#if MOZILLA_SNAPSHOT > 12
else if (context & EMBED_CONTEXT_INPUT)
{
+ update_edit_actions_sensitivity (window);
popup = "/EphyInputPopup";
}
+#endif
else
{
popup = framed ? "/EphyFramedDocumentPopup" :