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 584444 - Use tabs instead of dropdown list in sidebar
Use tabs instead of dropdown list in sidebar
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: General
GIT
Other All
: Normal minor
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-01 11:52 UTC by Paul Wellner Bou
Modified: 2009-11-09 09:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of tabbed sidebar (560.99 KB, image/png)
2009-06-01 12:56 UTC, Paul Wellner Bou
Details
F-Spot with default Gnome theme on 800x600 (184.66 KB, image/png)
2009-06-01 14:44 UTC, Paul Wellner Bou
Details
Behaviour of tabbed sidebar on browse mode (26.64 KB, image/png)
2009-06-01 14:46 UTC, Paul Wellner Bou
Details
Tabbed sidebar with little space in view mode (45.68 KB, image/png)
2009-06-01 14:49 UTC, Paul Wellner Bou
Details
Screenshot with scroll arrows and context menu (28.64 KB, image/png)
2009-06-05 10:30 UTC, Paul Wellner Bou
Details

Description Paul Wellner Bou 2009-06-01 11:52:43 UTC
At the moment I need two clicks to change the sidebar content. This is unnecessary I think. Should be done with one click.

With tabs instead of this dropdown list (or additionally) this will be much easier. We can keep the dropdown for the case that there will be much more tabs.

Other information:
Comment 1 Paul Wellner Bou 2009-06-01 11:53:22 UTC
see http://gitorious.org/~paulwb/f-spot/paulwbs-clone/commit/e3ca7f86c8ab03e28c00217d52f1a3a3c253d7d9, second file. Just one line.
Comment 2 Paul Wellner Bou 2009-06-01 11:55:42 UTC
This patch does not keep the dropdown and the tabs in sync. Of course, the tabs are changing if you change the dropdown lists, but viceversa the dropdown does not change.
Comment 3 Paul Wellner Bou 2009-06-01 12:56:05 UTC
Created attachment 135728 [details]
Screenshot of tabbed sidebar

In my opinion there is space enought for tabs.
Comment 4 Paul Wellner Bou 2009-06-01 14:44:49 UTC
Created attachment 135733 [details]
F-Spot with default Gnome theme on 800x600

Another example. For the three tabs we have at the moment this is enough space.
Comment 5 Paul Wellner Bou 2009-06-01 14:46:32 UTC
Created attachment 135734 [details]
Behaviour of tabbed sidebar on browse mode

In browse mode the tabbed sidebar behaves strange. The tabs go more to the right than they should do.
Comment 6 Paul Wellner Bou 2009-06-01 14:49:21 UTC
Created attachment 135735 [details]
Tabbed sidebar with little space in view mode

Behaviour of tabbed sidebar in view/edit mode. Seems ok. Additional tabs are hidden if there is not enough space. If we keep with the drop down list, this is no issue. I think this is the expected behaviour.
Comment 8 Paul Wellner Bou 2009-06-03 04:10:13 UTC
This branch works fine.
http://gitorious.org/~paulwb/f-spot/paulwbs-clone/commits/tabbedsidebar
Comment 9 Paul Wellner Bou 2009-06-05 10:30:06 UTC
Created attachment 136010 [details]
Screenshot with scroll arrows and context menu

See http://gitorious.org/~paulwb/f-spot/paulwbs-clone/commits/tabbedsidebar,﷒0
Comment 10 Paul Wellner Bou 2009-06-08 08:54:50 UTC
I commited the last modification last week on this.
http://gitorious.org/~paulwb/f-spot/paulwbs-clone/commits/tabbedsidebar

It works fine now. It is configurable with your configuration backend, using the boolean key "ui/tabbed_sidebar". Default is "True".

Stephane pointed out that the borders of the notebook pages of the sidebar are "ugly" (not matching the IconView border) using the tabs. This is caused because of the bevel borders enabled if tabs are shown. Setting ShowBorder to false does not have any effect if tabs are used. See http://library.gnome.org/devel/gtk/unstable/GtkNotebook.html#gtk-notebook-set-show-border.

It depends on the theme you are using how this is handled. There are themes showing the bevel border always and others where you can influence the bevel border by setting the border width of the first child within the notebook change to 0 or 1. Anyway, this isn't nice.

Some screenshots here: http://picasaweb.google.com/pwellner/FSpot#

Does someone know a way to influence the notebook border with visible tabs? This would be perfect. If not (I fear this isn't possible without touching the gtk(#) code or implement an own tab display, but I may be wrong), would this be a blocker to include tabs in f-spot? At least deactivated as default?
Comment 11 Paul Wellner Bou 2009-06-18 21:18:04 UTC
I found a not-so-beautiful workaround for this border "problem".

See screenshots here: http://picasaweb.google.com/pwellner/FSpot
Comment 12 Paul Wellner Bou 2009-11-09 09:28:03 UTC
Although I'd like to have this option in core f-spot (configurable), for now I wrote an extension doing this job.

http://blog.wbou.de/f-spot