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 441060 - Sidebar context switching
Sidebar context switching
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
SVN
Other All
: Normal enhancement
: ---
Assigned To: Ruben Vermeersch
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-24 22:09 UTC by Mike Gemünde
Modified: 2008-06-02 09:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sidebar Patch (19.41 KB, patch)
2007-05-24 22:12 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (35.22 KB, patch)
2007-05-25 08:44 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (37.75 KB, patch)
2007-06-04 15:39 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (56.73 KB, patch)
2007-06-05 17:30 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (56.79 KB, patch)
2007-06-06 18:00 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (67.99 KB, patch)
2007-07-18 19:06 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (61.58 KB, patch)
2007-07-19 13:00 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (74.92 KB, patch)
2007-07-27 10:13 UTC, Mike Gemünde
none Details | Review
Sidebar Patch (67.67 KB, patch)
2007-07-28 11:12 UTC, Mike Gemünde
committed Details | Review

Description Mike Gemünde 2007-05-24 22:09:22 UTC
I began to implement the sidebar context switching: http://www.f-spot.org/New_Features_-_Sidebar

Stephane mentioned that I should post my work to bugzilla, so here is it. It is not yet perfect, but next week I have no time to work on it (vacation) and maybe someone is interested to look on it.
At the Moment it looks like:
http://www.flickr.com/photos/8124695@N06/512379761/
http://www.flickr.com/photos/8124695@N06/512342648/
http://www.flickr.com/photos/8124695@N06/512342606/

something that have to be implemented (IMHO)

Exif:
- don't update extended metadata, if the expander is closed (it takes some time and make a little delay while changing selection)
- expander should be handled better, so a Expander was opened before changing the selection is opened after.

Information:
- Tags should be drag'n'dropable
- Tags should be removeable from the current photo here (popup menu)
- Exported locations should be removeable (if a photo was exported to a folder and the folder was moved the link doesn't work anymore)
- the Exposure string should be every time consists of 2 lines (at the moment it doesn't if no ISO Speed wasn't found, but FNumber and Exposure time was found)
- Exported locations is not (automatically) updated after export.

Hope for some comments.
Mike
Comment 1 Mike Gemünde 2007-05-24 22:12:00 UTC
Created attachment 88778 [details] [review]
Sidebar Patch

And here is the patch.

And something else I forgot. The MetadataDisplay (MetadataDisplay.cs) is (at the moment) another class than InfoDisplay, because InfoDisplay is still used by f-spot --view.
Comment 2 Stephane Delcroix 2007-05-25 07:43:38 UTC
Hey Mike,

the 3 new files (Sidebar, Metadatadisplay and MenuButton) are missing in your patch.

the easiest way to have them included in a svn diff is to 'svn add' them, then re-do your 'svn diff'

regards

s
Comment 3 Mike Gemünde 2007-05-25 08:44:56 UTC
Created attachment 88785 [details] [review]
Sidebar Patch

here is it, thx.
Comment 4 Alexandre Prokoudine 2007-05-27 17:56:58 UTC
F-Spot crashes with this patch, when unavailable picture is clicked.

Log: http://pastebin.ca/514325
Comment 5 Mike Gemünde 2007-05-28 14:37:21 UTC
I found the Problem, I'll fix it next week. thx.
Comment 6 Mike Gemünde 2007-06-04 15:39:27 UTC
Created attachment 89336 [details] [review]
Sidebar Patch

Here is a new one.

Changes:
* added some changes from Stephane
** support for icons in button and menu
** throw an event when the close button is clicked (widgets should compile without MainWindow...)
** move Sidebar in Widgets (folder and namespace)
** other things...

* It works now with unavailable pictures (Comment #4)
* better handling with opened expanders in MetadataDisplay.cs
Comment 7 Mike Gemünde 2007-06-05 17:30:36 UTC
Created attachment 89423 [details] [review]
Sidebar Patch

And an new one again:

* created a new class InfoVBox which is used by InfoBox and in FullScreenView (to display name, version, date, ... )
* MetadataDisplay now uses a Delay (like InfoBox), too
* MetadataDisplay and InfoBox now uses own Handler for Selection.Changed and Selesction.ItemsChanged events
* some little changes
Comment 8 Bengt Thuree 2007-06-05 21:49:32 UTC
Any chance to have some screenshots on picasa or somewhere?
Comment 9 Mike Gemünde 2007-06-06 06:39:31 UTC
There were some behavivour changes, but only a few are visible.

but here are some (new MenuButton with icons form Stephane, filesize when more than one photo is selected):

http://www.flickr.com/photos/8124695@N06/532809464/
http://www.flickr.com/photos/8124695@N06/532809512/
http://www.flickr.com/photos/8124695@N06/532905265/
http://www.flickr.com/photos/8124695@N06/532809742/
Comment 10 Bengt Thuree 2007-06-06 08:38:19 UTC
Looks great :) I like it....
Comment 11 Mike Gemünde 2007-06-06 18:00:55 UTC
Created attachment 89497 [details] [review]
Sidebar Patch

again some little fixes (nothing visible)
Comment 12 Sergey Nazarov 2007-07-02 20:16:29 UTC
Adding custom-written module support would be great..
Comment 13 Mike Gemünde 2007-07-18 19:06:12 UTC
Created attachment 91948 [details] [review]
Sidebar Patch

here is a new Version, after a long time.....

* restore last shown entry at restart
* adding the sidebar to f-spot --view
* build on rev 3222

@Sergey Nazarov: I think so, it shoul be possible to ddo it with the Addins.
Comment 14 Christoffer Sørensen 2007-07-18 20:55:57 UTC
Mike,

I just tried this patch. It is really great and opens up for a lot of opportunities.

However, I got this warning when running f-spot:

(f-spot:15738): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 2 char 18: Element 'markup' was closed, but the currently open element is 'small'

It happens when I select a photo.
Comment 15 Mike Gemünde 2007-07-19 13:00:08 UTC
Created attachment 91980 [details] [review]
Sidebar Patch

some little changes
Comment 16 Christoffer Sørensen 2007-07-19 16:08:23 UTC
I tried the newest patch. Could not get it to compile:

make[2]: *** No rule to make target `Widgets/MenuButton.cs', needed by `f-spot.exe'.  Stop.
Comment 17 Stephane Delcroix 2007-07-19 19:24:33 UTC
Christoffer, be creative ! take MenuButton.cs from the previous patch set...
Comment 18 Christoffer Sørensen 2007-07-19 20:36:56 UTC
Latest patch seems fine.

I would suggest to change the naming in the Exif page.

"Image Directory" etc. does not sound natural to me. Maybe "Image Data"?
Comment 19 Mike Gemünde 2007-07-27 10:13:25 UTC
Created attachment 92536 [details] [review]
Sidebar Patch

and a new one, with some fixes and hopefully with all files included :D
(build on r3252)

Christoffer: the thing with "Image Directory" have to be changed in Exif.cs. But "directory" is imho the correct spelling and it was used in earlier versions in the MetadataBrowser(dialog).

Mike
Comment 20 Maxxer 2007-07-27 13:27:18 UTC
very nice! working fine here!
Comment 21 Maxxer 2007-07-27 23:44:23 UTC
Two bad sides:

1. The info window it takes a lot of time for loading!
2. This patch made completely disappear all the export functions under File > Export to...
These warnings weren't appearing before applying the patch, I don't know if it matters.

(f-spot:6726): Gtk-CRITICAL **: gtk_tooltips_set_tip: assertion `GTK_IS_TOOLTIPS (tooltips)' failed
(f-spot:19809): Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem

Checked right now with latest SVN.
Comment 22 Stephane Delcroix 2007-07-28 07:05:12 UTC
Maxxer: are you running it --uninstalled or something ? that usually prevent extensions from loading, so no 'Export to' menu...
Comment 23 Maxxer 2007-07-28 09:34:37 UTC
(In reply to comment #22)
> Maxxer: are you running it --uninstalled or something ? that usually prevent
> extensions from loading, so no 'Export to' menu...

no. btw compiling it without the patch make the export functions come back again, I tried it!
The Export to menu exists, but it's not populated!
Comment 24 Mike Gemünde 2007-07-28 11:12:50 UTC
Created attachment 92590 [details] [review]
Sidebar Patch

Maxxer:
thx for testing.
1) what do you mean? when it takes a lot of time? startup? switching photos? switching the sidebar?

2) done with the new patch.....

The warnings you get. I can't reproduce it. Maybe it is done with the new patch.
Comment 25 Maxxer 2007-07-28 12:25:25 UTC
(In reply to comment #24)

> 1) what do you mean? when it takes a lot of time? startup? switching photos?
> switching the sidebar?

when clicking on a picture the first time, with some tags and some exports, it takes a bit of time for loading.
but I tried right now and it doesn't seems so slow, maybe it was just a feeling. 

> 2) done with the new patch.....

Works! Great!
Comment 26 Christoffer Sørensen 2007-07-28 13:29:35 UTC
Patch still is great, but now I have no Export menu items.

I am using revision 3257 to patch against and installed in ~/unstable/f-spot

I get these warnings:

(f-spot:27375): Gtk-CRITICAL **: gtk_tooltips_set_tip: assertion `GTK_IS_TOOLTIPS (tooltips)' failed

but I am not sure if it is because of this patch.

Would it make sense to have direct keyboard navigation for the items in the drop-down (Tags, Exif, Information)?

Right now, you have to tab-navigate and then select an item.
Comment 27 Mike Gemünde 2007-07-28 14:28:41 UTC
(In reply to comment #26)
> Patch still is great, but now I have no Export menu items.
> 

sorry, I've tried it again, but no problems with the export menu.


> I am using revision 3257 to patch against and installed in ~/unstable/f-spot
> 
> I get these warnings:
> 
> (f-spot:27375): Gtk-CRITICAL **: gtk_tooltips_set_tip: assertion
> `GTK_IS_TOOLTIPS (tooltips)' failed

I have some of such warnings too, but even without the patch.


> Would it make sense to have direct keyboard navigation for the items in the
> drop-down (Tags, Exif, Information)?
> 
> Right now, you have to tab-navigate and then select an item.
> 

I thought about using the mouse-scrollrad to change the sidebar.
Comment 28 Mike Gemünde 2007-07-28 14:30:59 UTC
Christoffer:

to your mockup:
http://www.flickr.com/photos/10057430@N03/927913202/

I would prefer the edit-functions in sidebar too.
Comment 29 Christoffer Sørensen 2007-07-28 15:58:43 UTC
Mike,

Having the edit-functions in the sidebar would be great.

Also, having Adjust Color with the Histogram would also fit nicely there. However, this would require some sort of preview function, so it is probably best that is separately handled in another bug :-)
Comment 30 Rafik 2007-08-06 21:25:28 UTC
Hi,
I'm new user of bugzilla and patch stuff ... So my question may seem ridiculous: I've tried to apply the patch to a the most recent svn version of f-spot and I've got this Makefile.am.rej
***************
*** 154,159 ****
  	$(srcdir)/MainWindow.cs			\
  	$(srcdir)/MetaStore.cs			\
  	$(srcdir)/MetadataStore.cs		\
  	$(srcdir)/OpenWithMenu.cs		\
  	$(srcdir)/Operation.cs			\
  	$(srcdir)/PhotoImageView.cs		\
--- 155,161 ----
  	$(srcdir)/MainWindow.cs			\
  	$(srcdir)/MetaStore.cs			\
  	$(srcdir)/MetadataStore.cs		\
+ 	$(srcdir)/MetadataDisplay.cs            \
  	$(srcdir)/OpenWithMenu.cs		\
  	$(srcdir)/Operation.cs			\
  	$(srcdir)/PhotoImageView.cs		\

As I understand, it can't modify the Makefile.am file as it is different from what it is waiting for to be. I try to add manually the + but the result is still bad: I do not have the sidebar_patch installed ...

Thank for your help and indulgence.

R
Comment 31 Maxxer 2007-11-24 23:01:14 UTC
What about this (and bug #398124)?
Hasn't this second bug more features?
Comment 32 Ruben Vermeersch 2008-05-24 18:01:59 UTC
Merge coming up.
Comment 33 Ruben Vermeersch 2008-06-02 09:03:35 UTC
Patch merged, further improvements coming up. Thanks for writing this!