Re: [Rhythmbox-devel] song_info question

On Fri, Sep 25, 2009 at 9:57 AM, Mindaugas Budreika
<mindaugas bu gmail com> wrote:
> Hi
> I'm trying to finish my fist rhythmbox plug-in in python and I my problem is
> that I want to edit song_info Basic tab (fields stroked in red) from other
> tab, the one I created by myself (stroked in blue) before clicking close. In
> other words if I add like a year of release in my tab I want it to be
> visible in Basic tab as well without closing and reopening song_info.
> The problem is that if I'm doing:
>         self.db.set(, rhythmdb.PROP_ALBUM, model[row][1])
>         self.db.set(, rhythmdb.PROP_GENRE, self.id3[1])
>         self.db.commit()
> the ID3 data is saved only if I close the song_info window with X. If I
> choose Back, Forward or Close buttons all the ID3 corrections made by my tab
> is being overwritten by rhythmbox (probably song_info functions)
> maybe there is other ways to solve this? but anyway I would like to see my
> changes in Basic tab without closing whole window.

You'd need to make the song info window watch for changes to the entry
it's displaying and update its text fields so that it wouldn't try to
restore the original values when the window was closed.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]