ElAdnan / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

Setting the pixmap's image from a command #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
disciple and vovchik

http://www.murga-linux.com/puppy/viewtopic.php?p=539783#539783
http://www.murga-linux.com/puppy/viewtopic.php?p=540188#540188

It basically amounts to adding a fill_pixmap_by_command function but with 
binary data that bash (etc.) doesn't support in shell variables, although 
vovchik has suggested using hexdump to convert the binary data into ASCII.

There's a nice piece about storing binary data within shell variables here: 
http://mywiki.wooledge.org/BashFAQ/058

Currently unscaled images are loaded using the original gtkdialog method of 
calling gtk_image_set_from_file. This function is very useful as animated gifs 
animate after loading. Scaled images call gdk_pixbuf_new_from_file_at_size and 
then gtk_image_set_from_pixbuf, but animated gifs need to be managed 
differently as I have already found out (I've yet to write support for scaled 
animated gifs). So my initial thoughts are that this is going to be a lot of 
work using gdk_pixbuf_new_from_data and maybe gdk_pixbuf_scale_simple and then 
adding support for animated gifs on top of that.

Original issue reported on code.google.com by thunor...@hotmail.com on 4 Jul 2011 at 12:13