aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-15 23:59:55 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-15 23:59:55 +0800
commit7e61b74638a8d3858f1d019ecc4331b833b680ff (patch)
tree84e37a320bf3938f9045c875d9802cf7d94b1c29 /src/ephy-tab.c
parenta1962faa29d9f42ed0dfeab8126767470c4be6e0 (diff)
downloadgsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar
gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.gz
gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.bz2
gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.lz
gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.xz
gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.zst
gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.zip
Hidden pref for middle click open url. Default off.
2003-04-15 Marco Pesenti Gritti <marco@it.gnome.org> * data/epiphany.schemas.in: * lib/ephy-prefs.h: * src/ephy-tab.c: (ephy_tab_init), (ephy_tab_dom_mouse_down_cb): Hidden pref for middle click open url. Default off. * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_update_menu), (ephy_bookmarks_editor_dispose), (keyword_node_selected_cb), (keyword_node_show_popup_cb), (build_search_box), (menu_activate_cb), (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-node-view.c: (cell_renderer_edited), (ephy_node_view_init), (ephy_node_view_edit), (ephy_node_view_is_editing): * src/bookmarks/ephy-node-view.h: Rework sensitivity updates and complete them with cut/copy/select all
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 256c48d2d..dea7707d5 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -113,10 +113,6 @@ static void
ephy_tab_size_to_cb (EphyEmbed *embed, gint width, gint height,
EphyTab *tab);
static gint
-ephy_tab_dom_mouse_click_cb (EphyEmbed *embed,
- EphyEmbedEvent *event,
- EphyTab *tab);
-static gint
ephy_tab_dom_mouse_down_cb (EphyEmbed *embed,
EphyEmbedEvent *event,
EphyTab *tab);
@@ -262,9 +258,6 @@ ephy_tab_init (EphyTab *tab)
g_signal_connect (embed, "ge_size_to",
GTK_SIGNAL_FUNC (ephy_tab_size_to_cb),
tab);
- g_signal_connect (embed, "ge_dom_mouse_click",
- GTK_SIGNAL_FUNC (ephy_tab_dom_mouse_click_cb),
- tab);
g_signal_connect (embed, "ge_dom_mouse_down",
GTK_SIGNAL_FUNC (ephy_tab_dom_mouse_down_cb),
tab);
@@ -881,14 +874,6 @@ ephy_tab_size_to_cb (EphyEmbed *embed, gint width, gint height,
}
}
-static gint
-ephy_tab_dom_mouse_click_cb (EphyEmbed *embed,
- EphyEmbedEvent *event,
- EphyTab *tab)
-{
- return FALSE;
-}
-
static void
ephy_tab_set_event (EphyTab *tab,
EphyEmbedEvent *event)
@@ -981,10 +966,11 @@ ephy_tab_dom_mouse_down_cb (EphyEmbed *embed,
ephy_shell_new_tab (ephy_shell, window, tab,
g_value_get_string (value), 0);
}
- else if (button == 1
- && !(context & EMBED_CONTEXT_LINK
- || context & EMBED_CONTEXT_EMAIL_LINK
- || context & EMBED_CONTEXT_INPUT))
+ else if (button == 1 &&
+ eel_gconf_get_boolean (CONF_INTERFACE_MIDDLE_CLICK_OPEN_URL) &&
+ !(context & EMBED_CONTEXT_LINK
+ || context & EMBED_CONTEXT_EMAIL_LINK
+ || context & EMBED_CONTEXT_INPUT))
{
/* paste url */
gtk_selection_convert (GTK_WIDGET (window),