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 317089 - Ipod information viewer/editor
Ipod information viewer/editor
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: iPod
0.9.x
Other Linux
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks: 338564
 
 
Reported: 2005-09-24 07:20 UTC by Baptiste Mille-Mathias
Modified: 2011-07-26 19:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Work in progress patch (47.54 KB, patch)
2006-04-17 16:03 UTC, Christophe Fergeau
needs-work Details | Review
Updated for latest Subversion with a few fixes (32.64 KB, patch)
2008-09-09 00:21 UTC, John Daiker
needs-work Details | Review
Changed as per feedback (31.02 KB, patch)
2008-09-25 03:27 UTC, John Daiker
none Details | Review
Patch that applies on top of the earlier patch (88.56 KB, patch)
2008-10-03 15:27 UTC, Christophe Fergeau
none Details | Review
Volume usage now shown properly (33.30 KB, patch)
2008-10-03 17:45 UTC, John Daiker
none Details | Review
Patch that refines patch #119876 (27.71 KB, patch)
2008-10-06 12:39 UTC, Christophe Fergeau
none Details | Review
Combination of patch 119876 and 120019 (32.29 KB, patch)
2008-10-07 19:41 UTC, John Daiker
committed Details | Review

Description Baptiste Mille-Mathias 2005-09-24 07:20:27 UTC
Rhythmbox should allow to read / edit information about ipod :
some thoughts here
Edition
* owner
* Ipod name

Information:
* Total size
* Size available
* Some system info (mount pount, ...)
Comment 1 James "Doc" Livingston 2005-09-24 07:35:26 UTC
http://banshee-project.org/index.php/Image:Banshee-ipod-properties.png is okay,
although I'm not sure how useful "Computer name" is.
Comment 2 Christophe Fergeau 2005-09-26 06:52:44 UTC
Fwiw, libipoddevice from gnome cvs handles all of that.
Comment 3 Christophe Fergeau 2006-04-17 16:03:47 UTC
Created attachment 63721 [details] [review]
Work in progress patch

Screenshots can be found at http://cfergeau.free.fr/hack/ipod-properties1.png and http://cfergeau.free.fr/hack/ipod-properties2.png
Comment 4 Bastien Nocera 2006-08-02 10:39:49 UTC
That looks nice. The property dialogue should also be able to change the iPod's name (in the database[1], not the filesystem label)

[1]: http://ipodlinux.org/ITunesDB#DeviceInfo_File
Comment 5 Dan Mihai Ile 2008-01-02 00:52:07 UTC
is this enhacement dead?
Comment 6 Baptiste Mille-Mathias 2008-07-25 12:08:08 UTC
Christophe,

Do you still work on that ?
Comment 7 John Daiker 2008-09-09 00:21:42 UTC
Created attachment 118337 [details] [review]
Updated for latest Subversion with a few fixes

Needs some work, but works with latest subversion on my 2nd Gen iPod Mini
Comment 8 Christophe Fergeau 2008-09-24 11:54:17 UTC
Hi, sorry for this bit of delay reviewing your patch.
Exporting RbIpodDbPrivate is a big no-no, making it private makes the whole thing more maintainable since it guarantees only rb-ipod-db.c will be able to poke into its content. To achieve what you are trying to do, I'd either define a RbIpodInfo structure containing all bits that you need to fill the info dialog and add a rb_ipod_db_get_ipod_info call or I'd add a bunch of accessors for each item you want to put in the ipod info dialog : rb_ipod_db_get_playlist_count and so on.
Comment 9 John Daiker 2008-09-25 03:27:45 UTC
Created attachment 119343 [details] [review]
Changed as per feedback

Updated to latest SVN.
Changed as per Christophe's suggestions in Comment #8
Only needed to add one function: rb_ipod_db_get_database_version
All other functions were currently in rb-ipod-db.c
Comment 10 Christophe Fergeau 2008-09-25 15:01:01 UTC
This looks much nicer :) I haven't tested it yet though, only read the diff and compile-tested. I think the available space (and maybe the total space) on the ipod should be displayed in this dialog (maybe they are already, as I said I only looked through the code so I may have missed some stuff).
Comment 11 John Daiker 2008-09-25 15:15:16 UTC
Agreed, but I have no idea how to get those through code.  The current (at least current on my system) libgpod doesn't seem to show any functions to get this done.  gtkpod shows available space, though... hmm...

Any idea where I can find updated documentation on libgpod and it's 'released' capabilities?
Comment 12 Bastien Nocera 2008-09-25 15:28:37 UTC
You can get the information from the GMount after getting the GVolume from the source object.
Comment 13 Christophe Fergeau 2008-10-03 15:27:04 UTC
Created attachment 119867 [details] [review]
Patch that applies on top of the earlier patch

This patch moves the "model" line from the Basic tab to the Advanced tab. It also add some functions using GIO to get the ipod total space/free space and to get the device name. The function to get the device name is used in the property dialog, the function to get free/total space aren't used yet, maybe you want to add the code to make proper use of them in the dialog ?
Comment 14 John Daiker 2008-10-03 17:45:17 UTC
Created attachment 119876 [details] [review]
Volume usage now shown properly

Volume usage is now shown properly (thanks Christophe!)
Moved 'Model' to advanced tab as per comment #13
Comment 15 Christophe Fergeau 2008-10-06 12:39:46 UTC
Created attachment 120019 [details] [review]
Patch that refines patch #119876

Here is another patch on top of yours. It changes the glade file to add some 12 px padding here and there. The purpose was to make it more HIG-friendly but I'm not really good at that so maybe I got it wrong. I reordered the items in the source popup menu to make it more similar to the one in Nautilus but I ended up with too many separators imo. It also adds stock icons for the "new playlist" and "properties" entry. Finally, the patch uses g_format_size_for_display to display the used/total ipod capacity in the dialog which makes it look much nicer.
Comment 16 John Daiker 2008-10-07 19:41:59 UTC
Created attachment 120154 [details] [review]
Combination of patch 119876 and 120019

Also removed the 'Rename' menuitem in favor of the 'iPod Name' callback in the properties window.
Popup menu looks as follows:

New Playlist
---
Eject
---
Properties
Comment 17 John Daiker 2008-10-07 19:44:12 UTC
Forgot in the above: Removed 'Your Name' item as it is not supported in libgpod (or in the iTunesDB, for that matter).

This one looks done to me.

JD
Comment 18 Christophe Fergeau 2008-10-26 19:52:02 UTC
Ok, I committed the latest patch :

2008-10-15 Christophe Fergeau  <teuf@gnome.org>

        Patch by: John Daiker

        * plugins/ipod/Makefile.am
        * plugins/ipod/ipod-info.glade
        * plugins/ipod/ipod-ui.xml
        * plugins/ipod/rb-ipod-db.c
        * plugins/ipod/rb-ipod-db.h
        * plugins/ipod/rb-ipod-plugin.c
        * plugins/ipod/rb-ipod-source.c
        * plugins/ipod/rb-ipod-source.h: add an ipod properties dialog,
        fixes bug #317089

Comment 19 Christophe Fergeau 2008-11-24 20:51:50 UTC
John, see bug #558576 if you want to try to improve the volume usage look ;)