Re: Alter status bar or thumbnail view from python plugin
- From: Felix Riemann <friemann gnome org>
- To: Tim Cuthbertson <tim gfxmonk net>
- Cc: eog-list gnome org
- Subject: Re: Alter status bar or thumbnail view from python plugin
- Date: Sat, 22 Dec 2012 16:20:01 +0100
Hey Tim,
Am Donnerstag, den 20.12.2012, 12:44 +1100 schrieb Tim Cuthbertson:
> Is there any way for a (python) plugin to alter the status bar and/or
> thumbnail view?
Changing the thumbnail view is probably pretty hard, as you'd have to
extend both it's data model as well as the used CellRenderer.
> I've written a plugin to rate photos, which sets a user-level xattr on
> the file to the number of stars a user has given the image. I'd love
> to display this as an overlay on the thumbnail bar, or at least in the
> status bar. I see other plugins modify the status bar, but they're all
> in C and I can't figure out how to do this from python.
Regarding the rating see also
https://bugzilla.gnome.org/show_bug.cgi?id=589198
> By looking at the .gir it doesn't seem possible, do I need to add GI
> annotations to eog itself before I can make use of these functions? Is
> there any reason not to do that, or has it just not been done yet?
Working with eog's statusbar is easier than it looks.
The trick is not to use the EogStatusbar members but use the interfaces
of it's parent classes GtkStatusbar and GtkBox to alter it.
The included statusbar-date plugin for example simply injects another
newly created GtkStatusbar inside eog's statusbar using the GtkBox
functions (GtkBox.pack_end).
I'm not that much into Python though, so it could be that there might be
API limitations here preventing that. Although that's hard to think of
as GtkBox is a widely used interface in GNOME.
Regards,
Felix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]