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 154248 - Tabbed Browsing
Tabbed Browsing
Status: RESOLVED FIXED
Product: devhelp
Classification: Applications
Component: General
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Mikael Hallendal
Mikael Hallendal
: 164052 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-10-01 15:10 UTC by j_lozinski
Modified: 2005-10-01 22:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rough first implementation of tabs (19.41 KB, patch)
2005-09-16 05:13 UTC, Brent Smith (smitten)
none Details | Review
new patch to implement tabs in devhelp (17.97 KB, patch)
2005-10-01 16:55 UTC, Brent Smith (smitten)
none Details | Review

Description j_lozinski 2004-10-01 15:10:23 UTC
It would be really handy to have tabbed browsing, so that when looking a
reference links in a document you can flip between them.  Middle click to open
in a new tab, just like in epiphany.
Comment 1 Mikael Hallendal 2005-03-30 19:23:31 UTC
*** Bug 164052 has been marked as a duplicate of this bug. ***
Comment 2 Brent Smith (smitten) 2005-09-13 20:03:31 UTC
I really would like to see this as well.
Comment 3 Brent Smith (smitten) 2005-09-16 05:13:41 UTC
Created attachment 52301 [details] [review]
rough first implementation of tabs

I'm new to gobject, but I've come up with a rough implementation for tabs in 
devhelp.  Not very accessible with this patch, but basically a middle click
on a link will open a new tab.	It's been pretty solid stability wise here.
It would be nice to get some feedback and testing.
Comment 4 Kamila Chyla 2005-09-25 12:28:55 UTC
I use Debian unstable. I tried to compile the patched devhelp-0.10 using
mozilla-dev package (Version: 2:1.7.11-1) and got following message:

make[3]: Entering directory `/home/karma/temp/devhelp/devhelp-0.10/src'
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2 -Wall -Wno-uninitialized
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wno-sign-compare   -o devhelp -R/usr/lib/mozilla dh-main.o
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0 libdevhelp-1.la
gcc -g -O2 -Wall -Wno-uninitialized -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -o
.libs/devhelp dh-main.o  /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so
/usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm
/usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so
/usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so ./.libs/libdevhelp-1.so
-Wl,--rpath -Wl,/opt/lib -Wl,--rpath -Wl,/usr/lib/mozilla
./.libs/libdevhelp-1.so: undefined reference to `mozilla_get_mouse_event_button'
collect2: ld returned 1 exit status

Comment 5 Brent Smith (smitten) 2005-09-25 22:30:58 UTC
looks like it might be libtool related.. Can delete the current source directory,
pull it from cvs, apply the patch and _then_ run "./autogen.sh" and "make &&
make install"?
Comment 6 Richard Hult 2005-09-26 19:38:21 UTC
I just tried the patch, it seems to work pretty nicely. The close button seems
to be a bit too big though, making the tab labels too heigh.
Comment 7 Kamila Chyla 2005-09-28 20:27:40 UTC
The patch worked on CVS version (from 2005-09-25). Tabs make the work with
devhelp  much, much easier. It would be nice to have a posibility to close tabs
from the keyboard (CTRL+W), it doesn't work now. 
Comment 8 Richard Hult 2005-09-28 22:14:42 UTC
The patch doesn't apply anymore, I've changed dh-window.c pretty much to add
support for multiple windows.
Comment 9 Brent Smith (smitten) 2005-09-28 22:28:54 UTC
Richard: So are you saying that you prefer multiple windows over tab support?

Or are you just letting me know that the patch no longer works with the
added feature of multiple windows?
Comment 10 Richard Hult 2005-09-28 23:10:02 UTC
Sorry, I would very much like to have tab support :) If you don't have time to
update the patch, I might do it.
Comment 11 Richard Hult 2005-09-29 21:07:54 UTC
A few comments on the patch:

The code in mozilla.cpp could be put in the existing cpp file we already have
for gecko glue.

There are a few style inconsistencies, like no space before "(" sometimes, and
the variables and function arguments are not lined up like the rest of the code.

I'm not so sure about the close buttons actually, they are kind of easy to hit
by accident, and they mess up the height of the tabs so they don't align with
the tabs at the left.

Comment 12 Brent Smith (smitten) 2005-10-01 16:55:42 UTC
Created attachment 52918 [details] [review]
new patch to implement tabs in devhelp

This patch should apply over current CVS.  It's basically the same as the last
patch except when you switch tabs, it also switches the title of the window.

I'm going to look into how to make the close button smaller so that it
lines up with the other notebook tabs.
Comment 13 Brent Smith (smitten) 2005-10-01 17:15:12 UTC
Oh, also the gecko stuff was put in the dh-gecko-utils.[ch] files as suggested so 
no Makefile.am changes were necessary, and all the style inconsistencies should be 
fixed.
Comment 14 Richard Hult 2005-10-01 22:09:06 UTC
Thanks!

I've committed tab support now based on your patch. I removed the close buttons
and added shortcuts for opening and closing tabs.