diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-02-15 18:02:34 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-15 18:02:34 +0800 |
commit | c6797825d807211a8d0c187bf2c299aabb1becef (patch) | |
tree | 336ae4b4c100d802e404548007697589c895a3f2 /src | |
parent | 77f221609143e50d1fb260b892aba1ebaedb74d3 (diff) | |
download | gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.tar gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.tar.gz gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.tar.bz2 gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.tar.lz gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.tar.xz gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.tar.zst gsoc2013-epiphany-c6797825d807211a8d0c187bf2c299aabb1becef.zip |
Implement a selected text context menu.
2003-02-15 Marco Pesenti Gritti <marco@it.gnome.org>
* data/ui/epiphany-ui.xml.in:
* src/ephy-tab.c: (ephy_tab_show_embed_popup):
Implement a selected text context menu.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-tab.c | 12 |
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); |