1.19.8: 2011-07-14 Murray Cumming ImageGlom: Set an appropriate default file filter. * glom/utility_widgets/imageglom.cc: evince-view sets its own default, but that's not ideal for us. 2011-07-14 Murray Cumming ImageGlom: Use G_FILE_ATTRIBUTE_STANDARD_ICON * glom/utility_widgets/imageglom.cc: If G_FILE_ATTRIBUTE_THUMBNAIL_PATH doesn't work, use the standard icon. This does seem to work. 2011-07-14 Murray Cumming ImageGlom: Try to use G_FILE_ATTRIBUTE_THUMBNAIL_PATH for other file types. * glom/utility_widgets/imageglom.[h|cc]: show_image_data(): Get the mime_types supported by GdkPixbuf and only try to use it if we have a suitable mime type. Otherwise try to get a thumbnail from GFileInfo. That doesn't work now, probably because we should do that async. 2011-07-14 Murray Cumming ImageGlom: Remove some unnecessary code. * glom/utility_widgets/imageglom.cc: get_value(): Don't use the pixbuf just to get the value. 2011-07-14 Murray Cumming ImageGlom: Another scaling fix. * glom/utility_widgets/imageglom.cc: get_scaled_image(): Don't return an empty pixbuf just because the pixbuf doesn't not need to change. 2011-07-14 Murray Cumming ImageGlom: Remove limits so we always scale, and use on_size_allocate(). * glom/utility_widgets/imageglom.[h|cc]: Use on_size_allocate() instead of on_draw(), which is slightly wiser. Remove the hard-coded checks for minumum and maximum sizes, because we get an initial allocation of 1, and because the max was arbitrarily small. * glom/utils_ui.cc: Fix this for images that are both too wide and too high. This works now, but we still need to make the window get smaller when the GtkImage requests less space. 2011-07-13 Murray Cumming ImageGlom: Remove hard-coded mentions of PNG file formats. * glom/utility_widgets/imageglom.cc: Open With: Use the actual (sniffed) mime type. Clipboard: Try to use the actual mime type, though this does not seem to work for any mime type now. 2011-07-13 Murray Cumming ImageGlom: Show the missing image icon again. * glom/utility_widgets/imageglom.cc: set_value(): Clear the data, not the pixbuf. show_image_data(): Check for empty data and show the missing icon if so. 2011-07-13 Murray Cumming ImageGlom: Make the context-menu work with the EvView. * glom/utility_widgets/imageglom.cc: Connect to the widget's own signal. 2011-07-13 Murray Cumming ImageGlom: Loading/Saving: Add more FileChooser filters. * glom/utility_widgets/imageglom.cc: set_file_filter_images(): Use ev_document_factory_add_filters(). 2011-07-13 Murray Cumming Image fields: Support PDF (and other types supported by evince) * configure.ac: Depend on evince-view-3.0, which is a library installed by evince. It is packaged separately from evince by distros. * glom/main.cc: Call ev_init(). * glom/utility_widgets/dialog_image_load_progress.[h|cc]: Remove get_pixbuf() and do not use Gdk::PixbufLoader here. * glom/utility_widgets/imageglom.[h|cc]: Create the pixbuf here, from the data from the dialog. Add an EvView, and use that instead of the Gtk::Image when the mime type is supported by EvView. We use g_content_type_guess() to sniff the mime type from the actual data, but this will probably not always work. We should store the mime type (and the filename) too. The context menu doesn't work with the EvView yet.