diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-06-13 16:32:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-06-13 16:32:53 +0800 |
commit | c12d8afd20fe5b2b6a073fbc653076f89a049848 (patch) | |
tree | 928e6408d38bff163f924968f68bf357aebd1d83 /src/ephy-window.c | |
parent | 6d1178bbebb43f06f0842ad8e14e74bcd2d0b4af (diff) | |
download | gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.tar gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.tar.gz gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.tar.bz2 gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.tar.lz gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.tar.xz gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.tar.zst gsoc2013-epiphany-c12d8afd20fe5b2b6a073fbc653076f89a049848.zip |
Do not hide clipboard items for the input context, fixes bug #139040
2004-06-13 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-window.c: (show_embed_popup):
Do not hide clipboard items for the input context, fixes
bug #139040 (backported from HEAD).
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 43223f9cc..127b0d9b6 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1384,7 +1384,6 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event) gboolean framed, has_background, can_open_in_new; GtkWidget *widget; EphyEmbedEventType type; - gboolean showing_edit_actions = FALSE; /* Do not show the menu in print preview mode */ if (window->priv->mode == EPHY_WINDOW_MODE_PRINT_PREVIEW) @@ -1407,8 +1406,8 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event) } else if (context & EMBED_CONTEXT_LINK) { - showing_edit_actions = TRUE; popup = "/EphyLinkPopup"; + update_edit_actions_sensitivity (window, TRUE); } else if (context & EMBED_CONTEXT_IMAGE) { @@ -1417,15 +1416,15 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event) #if MOZILLA_SNAPSHOT > 12 else if (context & EMBED_CONTEXT_INPUT) { - showing_edit_actions = TRUE; popup = "/EphyInputPopup"; + update_edit_actions_sensitivity (window, FALSE); } #endif else { - showing_edit_actions = TRUE; popup = framed ? "/EphyFramedDocumentPopup" : "/EphyDocumentPopup"; + update_edit_actions_sensitivity (window, TRUE); } widget = gtk_ui_manager_get_widget (GTK_UI_MANAGER (window->ui_merge), @@ -1441,11 +1440,6 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event) action = gtk_action_group_get_action (action_group, "OpenLinkInNewTab"); g_object_set (action, "sensitive", can_open_in_new, FALSE); - if (showing_edit_actions) - { - update_edit_actions_sensitivity (window, TRUE); - } - g_object_set_data_full (G_OBJECT (window), "context_event", g_object_ref (event), (GDestroyNotify)g_object_unref); |