I would rather not create the files, that's all.thunor wrote:I'm wondering why you would want to pipe images into gtkdialog when you can load them as files.
Yes.Is it just so that you can get gtkdialog to run a command to extract the thumbnail
I'm not certain what you mean here - how can I write the thumbnail into the XML?instead of writing it into the XML with shell script?
I'm not so much interested in refreshing the widget. An example of what I would like to do could be modifying pmetatagger so that when it reads the tag of a jpeg or an mp3 it displays the exif thumbnail or the embedded album art, without saving it as a temporary file. Similarly, Pmusic could display embedded album art.When you refresh the pixmap widget you'll need to do it on a signal likely connected to a button, and you can have two actions, the first extracting the thumbnail and the second refreshing the pixmap widget.
But there would be some seriously cool uses for it in combination with refreshing a widget - e.g. a gtkdialog photo browser could be written, which would display the embedded thumbnails for all the images in a directory, in a scrollable hbox (or vbox), and clicking on a thumbnail would display the full size image above (or to the right of) the hbox (or vbox). This would not be the best way to implement a photo browser, but it would be cool
There already exists a directive for inputting data from a shell command - <input></intput> - so that could be used, but I still don't see what benefit it would be to implement it. Maybe I'm missing something