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 431060 - [usability] use pygtk's load_icon as much as possible
[usability] use pygtk's load_icon as much as possible
Status: RESOLVED OBSOLETE
Product: pitivi
Classification: Other
Component: User interface
Git
Other Linux
: Normal normal
: Git
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks: 337894
 
 
Reported: 2007-04-18 16:34 UTC by Jean-François Fortin Tam
Modified: 2009-09-06 07:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2007-04-18 16:34:33 UTC
I think some of the icons that PiTiVi ships can be provided by the user's theme instead, namely:
pitivi/pixmaps/pitivi-video.png
pitivi/pixmaps/pitivi-sound.png
pitivi/pixmaps/pitivi-file.png

It would be much better to use the user's native theme icons:
http://pygtk.org/pygtk2reference/class-gtkicontheme.html#method-gtkicontheme--load-icon

It would look something like this:
load_icon("video-x-generic", 48, 0)
load_icon("audio-x-generic", 48, 0)
load_icon("misc", 48, 0)

(bonus: you can change the size to anything other than 48, and icon themes often provide SVG versions nowadays).

This would make PiTiVi better integrated into the desktop.
Comment 1 Edward Hervey 2007-04-18 16:56:22 UTC
Fixed in svn.

2007-04-18  Edward Hervey  <edward@fluendo.com>

	* pitivi/ui/sourcefactories.py:
	Use default gtk theme icons for files, audio files and video files.
	Fixes #431060

Comment 2 Jean-François Fortin Tam 2007-04-18 18:27:21 UTC
Wow, that was fast! Thanks, it looks much better already for sound files :)
I think you forgot some other places however, because I still see some "old" video icons in the timeline:

jeff@kaname:~/trunks/pitivi/pitivi/ui$ grep -Rn "png" *.py

complexsource.py:55:
self.thumbnailsurface = cairo.ImageSurface.create_from_png(os.path.join(get_pixmap_dir(), "pitivi-video.png"))

timelineobjects.py:556:
self.thumbnail = gtk.gdk.pixbuf_new_from_file(os.path.join(get_pixmap_dir(), "pitivi-video.png"))



mainwindow.py:172:        self.set_icon_from_file(configure.get_global_pixmap_dir() + "/pitivi.png")
mainwindow.py:257:
        abt.set_icon_from_file(configure.get_global_pixmap_dir() + "/pitivi.png")

#Note: these two depend on pitivi.png/.svg being present in gnome/tango icon themes; in any case, pitivi needs to "supply" that icon to the HighContrast theme. Example: http://code.google.com/p/specto/issues/detail?id=25
Comment 3 oneforall 2008-06-04 06:01:52 UTC
looks like this fix has screwed up it loading in kde
Comment 4 Edward Hervey 2008-06-05 09:47:01 UTC
oneforall : could you paste here what errors/warnings come up on the console ? Don't have kde to test this.
Comment 5 Edward Hervey 2009-09-06 07:25:33 UTC
I think we're done with this. Closing.