aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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" :