After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 110786 - Opening pages in a new tab
Opening pages in a new tab
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Tabs
0.x
Other Linux
: Normal enhancement
: ---
Assigned To: Marco Pesenti Gritti
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2003-04-14 21:07 UTC by paul
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
handle Ctrl-click the same as middle click (2.13 KB, patch)
2003-08-17 18:32 UTC, Jon Willeke
none Details | Review
patch updated to HEAD (3.27 KB, patch)
2003-11-03 18:43 UTC, Christian Persch
none Details | Review
better patch (4.18 KB, patch)
2003-11-03 23:11 UTC, Christian Persch
none Details | Review
final patch (4.41 KB, patch)
2003-11-04 11:44 UTC, Christian Persch
none Details | Review
fixed a typo (4.41 KB, patch)
2003-11-04 11:49 UTC, Christian Persch
none Details | Review

Description paul 2003-04-14 21:07:45 UTC
The option to open in tabs by default is not sufficient for general use, as
this is not always desireable.
it would be cool to have the mozilla feature where clicking on a link
whilst pressing ctrl would open said link in a new tab.
Comment 1 Dave Bordoley [Not Reading Bug Mail] 2003-05-11 00:28:25 UTC
I pretty much agree with this though I'm not sure if ctrl or alt
should be used. 
Comment 2 Jon Willeke 2003-08-17 18:29:20 UTC
Barring a good reason to diverge from Mozilla's behavior, I'd say Ctrl
is preferred.

I'm attaching a patch against 0.8.2 that implements this.  Because it
conflicts with a patch I submitted in bug 116809, this patch includes
both changes.
Comment 3 Jon Willeke 2003-08-17 18:32:31 UTC
Created attachment 19294 [details] [review]
handle Ctrl-click the same as middle click
Comment 4 Christian Persch 2003-09-16 10:39:35 UTC
Marco, can this go in now?
Comment 5 Marco Pesenti Gritti 2003-09-16 11:01:52 UTC
On head we open in new tab by default on middle click. I'd prolly just
make ctrl+click behave the same as middle click. (for now at least,
not sure if it will be necessary to have a pref or something to use a
window).
Comment 6 Christian Persch 2003-11-03 18:43:15 UTC
Created attachment 21163 [details] [review]
patch updated to HEAD
Comment 7 Christian Persch 2003-11-03 18:45:38 UTC
The patch now implements:
- ctrl+click open in new tab
- shift+click on link -> save
- shift+click on non-link image -> save image

One thing I noticed is that we have variants of save_property_url in
window-commands:window_cmd_file_save_as,
ephy-embed-popup-control.c:save_property_url,
popup-commands.c:save_property_url and now in
ephy-tab.c:save_property_url... it might be worth factoring that out
to one function.
Comment 8 Christian Persch 2003-11-03 23:11:26 UTC
Created attachment 21175 [details] [review]
better patch
Comment 9 Marco Pesenti Gritti 2003-11-04 08:44:18 UTC
Much better :) please use 2000-2003 in the license thing.
Please commit, thanks ! (oh do not forget to add the doc thingy)
Comment 10 Christian Persch 2003-11-04 11:44:50 UTC
Created attachment 21179 [details] [review]
final patch
Comment 11 Christian Persch 2003-11-04 11:47:05 UTC
I had to change back to one-level ifs because the previous patch was
_not_ equivalent to the current code; for example middle clicking over
a non-link image wouldn't have worked anymore. To make it more
readable, I introduced some mode boolean vars.

As for the docs, I'll add a "Things to document" file in help/. 

Ok to commit?
Comment 12 Christian Persch 2003-11-04 11:49:37 UTC
Created attachment 21180 [details] [review]
fixed a typo
Comment 13 Marco Pesenti Gritti 2003-11-04 18:12:44 UTC
The middle_clickable thing isnt exactly clear :/ Though I think it's
ok to commit. We can fix it up later if we get better idea. Thanks!
Comment 14 Christian Persch 2003-12-08 15:21:48 UTC
Got finally around to checking this in.