aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index e660b6bba..be1942629 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -849,12 +849,15 @@ 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) &&
@@ -870,6 +873,14 @@ ephy_tab_show_embed_popup (EphyTab *tab, EphyEmbedEvent *event)
{
popup = "EphyImagePopup";
}
+ else if (context & EMBED_CONTEXT_INPUT)
+ {
+ popup = "EphyInputPopup";
+ }
+ else if (can_copy == G_OK)
+ {
+ popup = "EphyTextPopup";
+ }
else
{
popup = framed ? "EphyFramedDocumentPopup" :
@@ -877,7 +888,6 @@ ephy_tab_show_embed_popup (EphyTab *tab, EphyEmbedEvent *event)
}
path = g_strconcat ("/popups/", popup, NULL);
- g_print (path);
widget = egg_menu_merge_get_widget (EGG_MENU_MERGE (window->ui_merge),
path);
g_free (path);