Daniel P. Berrange [Sat, 17 Aug 2013 18:01:49 +0000 (19:01 +0100)]
Update to 0.5.2 release
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Sat, 17 Aug 2013 18:26:56 +0000 (19:26 +0100)]
Remove use of 'document_mode' field in raw file generation
LibRaw >= 0.15 has removed the 'document_mode' field, so we must
stop using it in Entangle. Fortunately it wasn't doing anything
important for us.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Sat, 17 Aug 2013 18:13:51 +0000 (19:13 +0100)]
Remove trailing whitespace
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Sat, 17 Aug 2013 18:09:51 +0000 (19:09 +0100)]
Switch to automatically generated AUTHORS file
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Sat, 17 Aug 2013 18:01:17 +0000 (19:01 +0100)]
Refresh translations from transifex
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 22:46:57 +0000 (23:46 +0100)]
Make metadata query robust to missing metadata
To avoid displaying garbage when exif data is unset, change to
explicitly query whether the metadata tag is set before asking
for the value.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 22:29:12 +0000 (23:29 +0100)]
Ensure camera progress functions run in main thread
GTK APIs must only be used from the main thread, so the
camera progress functions must use an idle callback to
switch to the main thread.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 21:39:30 +0000 (22:39 +0100)]
Skip redraw of items without size allocated
In the session browser, it is possible for the item draw
routine to be invoked before a width/height has been set.
This makes pixman rather unhappy, so skip the drawing
operation in this case
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 20:14:40 +0000 (21:14 +0100)]
Preserve scrollbar offsets when switching images
When cycling back & forth between images when auto-scale is
not set, preserve the scrollbar offsets.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 20:14:22 +0000 (21:14 +0100)]
Fix double unref of pixbuf when rotating
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 19:31:22 +0000 (20:31 +0100)]
Re-arrange nesting of image display
To prevent the image statusbar being resized to fit in the image
scrolled window, re-arrange the nesting of image display. This
puts the statusbar outside the scrolled window.
Bug #20429
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 13 Aug 2013 20:52:44 +0000 (21:52 +0100)]
Fix args to gtk_grid_attach
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Fri, 9 Aug 2013 19:35:59 +0000 (20:35 +0100)]
Use GtkGrid instead of GtkTable if available
For GTK >= 3.2.0 we can use GtkGrid for layout instead
of the deprecated GtkTable
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Daniel P. Berrange [Fri, 9 Aug 2013 19:34:52 +0000 (20:34 +0100)]
Remove use of deprecated GStaticMutex
The entangle_camera_is_mounted method can only be called
from the main thread now, so does not need mutex protection.
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Daniel P. Berrange [Wed, 8 May 2013 20:26:58 +0000 (21:26 +0100)]
Fix enablement of -Werror
Daniel P. Berrange [Tue, 9 Jul 2013 20:21:52 +0000 (21:21 +0100)]
Add README for translators
Direct translators towards Transifex
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Mon, 8 Jul 2013 19:42:14 +0000 (20:42 +0100)]
Refresh translations from transifex
Daniel P. Berrange [Wed, 24 Apr 2013 19:20:16 +0000 (20:20 +0100)]
Ensure every event is emitted in main thread
Ensure that the pixbuf loader emits events in the main
thread, allowing all calls to gdk threads enter/leave
to be removed
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Daniel P. Berrange [Wed, 24 Apr 2013 19:19:57 +0000 (20:19 +0100)]
Add note about 'h' key for histrogram mode toggle
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Daniel P. Berrange [Wed, 24 Apr 2013 18:45:17 +0000 (19:45 +0100)]
Refresh translations from transifex
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Jesper Pedersen [Wed, 24 Apr 2013 18:41:23 +0000 (19:41 +0100)]
Add support for linear histogram
Add a config option to allow switching between liner and
logarithmic histrogram rendering
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Daniel P. Berrange [Tue, 9 Apr 2013 20:08:26 +0000 (21:08 +0100)]
Disable static libraries build
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
Simon Booth [Tue, 9 Apr 2013 12:37:12 +0000 (13:37 +0100)]
remove several unused variables. Fix variables initialised twice.
Daniel P. Berrange [Tue, 2 Apr 2013 11:32:14 +0000 (12:32 +0100)]
Remove leftover g_printerr statements
Daniel P. Berrange [Mon, 1 Apr 2013 16:07:30 +0000 (17:07 +0100)]
Refresh translations from transifex
Daniel P. Berrange [Mon, 1 Apr 2013 16:04:52 +0000 (17:04 +0100)]
Apply orientation from EXIF data to images
If GTK fails to apply any orientation data from the image file,
then fallback to applying orientation data from the exif
metadata block
Daniel P. Berrange [Mon, 1 Apr 2013 15:09:53 +0000 (16:09 +0100)]
Set prefs before loading session
Starting up the session was loaded before the preferences were
applied. Thus, the first image loaded would be processed using
the wrong settings.
Jesper Pedersen [Mon, 1 Apr 2013 14:40:28 +0000 (15:40 +0100)]
Try to extract preview/thumbnail from raw files
The exiv2 data stream doesn't always contain good thumbnails for
raw files. Try to extract a preview/thumbnail from the raw file
first, then try exiv2, and finally fallback to resizing the main
image
Jesper Pedersen [Mon, 1 Apr 2013 14:38:39 +0000 (15:38 +0100)]
Set sane default values for processing raw files
Set some default parameters for libraw so that it processes files
using the typical camera defaults. This should give better results,
particularly with Canon raw files.
Jesper Pedersen [Mon, 1 Apr 2013 14:22:24 +0000 (15:22 +0100)]
Ensure check for raw files is case insensitive
When checking the filename extension to identify raw files, convert
the filename to lowercase first, to ensure the check is case
insensitive
Jesper Pedersen [Mon, 1 Apr 2013 14:19:03 +0000 (15:19 +0100)]
Only import known image extension in the session
Instead of importing all files to a session, only import files
whose extension is found in a whitelist. This ensures we only
get image files loaded
Jesper Pedersen [Mon, 1 Apr 2013 14:13:30 +0000 (15:13 +0100)]
Fix aperture and shutter speed metadata in status bar
Jesper Pedersen [Mon, 1 Apr 2013 14:09:43 +0000 (15:09 +0100)]
Split histogram into RGB colour channels
Instead of drawing a single histogram for the overall intensity,
draw separate graphs for each RGB colour channel. Also draw a
small 4x4 grid overlay.
Daniel P. Berrange [Tue, 12 Mar 2013 20:59:57 +0000 (20:59 +0000)]
Update for 0.5.1 release
Daniel P. Berrange [Tue, 12 Mar 2013 20:29:26 +0000 (20:29 +0000)]
Refresh translations from transifex
Daniel P. Berrange [Sat, 2 Mar 2013 20:14:59 +0000 (20:14 +0000)]
Refresh translations from transifex
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Cristian Marchi [Sat, 2 Mar 2013 20:11:29 +0000 (20:11 +0000)]
Add initial Italian translation
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Cristian Marchi [Sat, 2 Mar 2013 20:10:49 +0000 (20:10 +0000)]
Add missing translation markers on some strings
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Fri, 22 Feb 2013 21:10:55 +0000 (21:10 +0000)]
Add support for manual focus control during preview
Daniel P. Berrange [Fri, 22 Feb 2013 21:02:38 +0000 (21:02 +0000)]
Add support for autofocus during preview
Daniel P. Berrange [Fri, 22 Feb 2013 20:49:15 +0000 (20:49 +0000)]
End preview by toggling viewfinder action
If possible, use the view finder control to turn off preview
mode, otherwise fallback to cpaturing an image
Daniel P. Berrange [Fri, 22 Feb 2013 20:48:57 +0000 (20:48 +0000)]
Remove left over variable from gphoto 2.5 compat fix
Daniel P. Berrange [Fri, 22 Feb 2013 20:48:38 +0000 (20:48 +0000)]
Remove debug line
Daniel P. Berrange [Fri, 22 Feb 2013 20:48:04 +0000 (20:48 +0000)]
Add method to query if viewfinder control is possible
Daniel P. Berrange [Fri, 22 Feb 2013 20:47:39 +0000 (20:47 +0000)]
Fix previous methods for autofocus/manualfocus/viewfinder control
Daniel P. Berrange [Fri, 22 Feb 2013 20:03:55 +0000 (20:03 +0000)]
Filter control sections when loading instead of displaying
Make EntangleCamera filter the sections, instead of the
EntangleControlPanel, since some sections are getting formal
APIs in the camera class
Daniel P. Berrange [Fri, 22 Feb 2013 19:07:37 +0000 (19:07 +0000)]
Add APIs for viewfinder/autofocus/manualfocus control
Daniel P. Berrange [Thu, 21 Feb 2013 20:08:58 +0000 (20:08 +0000)]
Avoid warnings about deprecated mutex/condition var functions
In recent glib2 releases several mutex/condition var functions
are deprecated. Add some macro wrappers to avoid the warnings
Daniel P. Berrange [Thu, 21 Feb 2013 20:08:15 +0000 (20:08 +0000)]
Conditionally use new style gphoto callbacks
In gphoto >= 2.5 many callbacks changed from 'char *fmt, va_args *'
to just 'char *msg'. Conditionally use the right signature based
on version
Daniel P. Berrange [Sun, 16 Dec 2012 22:42:33 +0000 (22:42 +0000)]
Update for 0.5.0 release
Daniel P. Berrange [Sun, 16 Dec 2012 22:29:30 +0000 (22:29 +0000)]
Fix man page target name
Daniel P. Berrange [Sun, 16 Dec 2012 22:29:13 +0000 (22:29 +0000)]
Fix docs generation
Daniel P. Berrange [Sun, 16 Dec 2012 22:09:22 +0000 (22:09 +0000)]
Add LibRaw to list of deps in README
Daniel P. Berrange [Sun, 16 Dec 2012 22:07:06 +0000 (22:07 +0000)]
Refresh translations
Daniel P. Berrange [Sun, 16 Dec 2012 18:28:02 +0000 (18:28 +0000)]
Add hack to delete both images when exiting preview
Since there is no way to exit preview mode, we must take a
shot and then delete it. If the capture mode is raw+jpeg
we must take care to delete both images that are captured
Daniel P. Berrange [Sun, 16 Dec 2012 18:05:05 +0000 (18:05 +0000)]
Fix session filename generation to cope with dual-format capture
When the camera captures raw+jpeg formats at the same time, both
images must be saved with the same filename prefix
Daniel P. Berrange [Sun, 16 Dec 2012 17:39:45 +0000 (17:39 +0000)]
Rewrite overlay display to be more efficient
Instead of creating one cairo surface per image and overlaying
them during the draw event, overlay the images directly into a
single cairo surface.
Daniel P. Berrange [Sun, 9 Dec 2012 21:32:43 +0000 (21:32 +0000)]
Tweak debugging in event logging
Daniel P. Berrange [Sun, 9 Dec 2012 21:32:14 +0000 (21:32 +0000)]
Fix updating of range controls
Fix typo which continually reset range controls back to their
original value
Daniel P. Berrange [Wed, 5 Dec 2012 23:28:16 +0000 (23:28 +0000)]
Add support for onion skin preferences
Daniel P. Berrange [Wed, 5 Dec 2012 22:35:19 +0000 (22:35 +0000)]
Add ability to render an "onion skin" from a list of images
Extend the image display widget to take a list of images. Then
render an "onion skin" overlay with partial opacity. In the
case of a list with 1 entry, the behaviour is as before.
Daniel P. Berrange [Wed, 5 Dec 2012 22:32:24 +0000 (22:32 +0000)]
Change way image pixbufs are cleared
Instead of trying to track which image is used in popups,
just make use of the ref counting in the image loader. Add
"unload" signals to the image loader to enable detection
of when last use is released.
Daniel P. Berrange [Wed, 5 Dec 2012 21:59:42 +0000 (21:59 +0000)]
Sort images by name instead of modified date
Daniel P. Berrange [Wed, 5 Dec 2012 21:57:22 +0000 (21:57 +0000)]
Ensure camera is disconnected on window close/app exit
When hiding a camera manager window, disassociate the
camera, so it gets closed cleanly, otherwise some Canon
cameras will hang.
Daniel P. Berrange [Wed, 28 Nov 2012 22:09:10 +0000 (22:09 +0000)]
Reindent to normalize whitespace
Daniel P. Berrange [Thu, 22 Nov 2012 09:45:53 +0000 (09:45 +0000)]
Fix deadlock unmounting camera at startup
The startup code should be using gdk_threads_{enter,leave}
since we make use of threads. When umounting a camera we
entered a recursive main loop. This caused GDK to try to
unlock a mutex that was never locked, corrupting mutex
state. The result was a later hang next time GDK tried to
lock the mutex.
We can't acquire the mutex in the activate callback, since
that can be called from scenarios where the lock is already
held. Thus we move our code into the startup method instead
and just make activate do a window show.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 21 Nov 2012 21:52:31 +0000 (21:52 +0000)]
Fix mistake in function prototype name
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Tue, 18 Sep 2012 13:29:13 +0000 (14:29 +0100)]
Refresh translations
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Sun, 16 Sep 2012 15:16:51 +0000 (16:16 +0100)]
Add preference to control use of embedded image preview for raw files
Daniel P. Berrange [Sun, 16 Sep 2012 14:56:44 +0000 (15:56 +0100)]
Load raw files using LibRaw
Add support for using LibRaw to load raw files. Use the
embedded preview, rather than processing the entire RAW
data.
Daniel P. Berrange [Sun, 16 Sep 2012 11:39:47 +0000 (12:39 +0100)]
Add some more comments to thumbnail loader code
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 12 Sep 2012 10:47:57 +0000 (11:47 +0100)]
Fix typo in man page name
Daniel P. Berrange [Thu, 6 Sep 2012 19:34:44 +0000 (20:34 +0100)]
Update NEWS for 0.4.1 release
Daniel P. Berrange [Thu, 6 Sep 2012 19:28:02 +0000 (20:28 +0100)]
Allow camera to be NULL
Re-add
9a977e23d9f399b8ae2afab98cddec0022e5a276 accidentally
reverted
Daniel P. Berrange [Thu, 6 Sep 2012 19:25:11 +0000 (20:25 +0100)]
Remove bogus assertion check
Daniel P. Berrange [Thu, 6 Sep 2012 19:19:50 +0000 (20:19 +0100)]
Control histogram height to match default icon panel height
Daniel P. Berrange [Thu, 6 Sep 2012 19:11:13 +0000 (20:11 +0100)]
Use 'src' from finish callback, since priv->camera might be NULL
When saving camera controls using an async callback, make sure the
callback uses the passed in 'src' parameter instead of relying on
priv->camera which may now be NULL
Daniel P. Berrange [Thu, 6 Sep 2012 19:10:30 +0000 (20:10 +0100)]
Allow camera to be NULL in control panel
Daniel P. Berrange [Thu, 6 Sep 2012 19:09:22 +0000 (20:09 +0100)]
Avoid GTK assertion if min=max
The GTK range widgets can't cope with the (entirely reasonable)
scenario where the min value == max value. Hack a workaround for
this by increasing the max value by 1.0 and setting the control
readonly instead
Daniel P. Berrange [Sun, 2 Sep 2012 04:02:44 +0000 (21:02 -0700)]
Fix unref of cairo surface object in image display
Daniel P. Berrange [Sun, 2 Sep 2012 03:54:49 +0000 (20:54 -0700)]
Add accelerators for menu options
Daniel P. Berrange [Sun, 2 Sep 2012 03:45:36 +0000 (20:45 -0700)]
Add further protection in API calls
Daniel P. Berrange [Sat, 1 Sep 2012 22:18:51 +0000 (15:18 -0700)]
Add man page and a few misc fixes
Add a man page based on the one in bug 20061
Daniel P. Berrange [Sat, 1 Sep 2012 22:16:46 +0000 (15:16 -0700)]
Add g_return_if_fail checks to various methods in frontend code
Daniel P. Berrange [Sat, 1 Sep 2012 22:16:32 +0000 (15:16 -0700)]
Remove tabs from previous commit
Daniel P. Berrange [Sat, 1 Sep 2012 16:46:42 +0000 (09:46 -0700)]
Create display of supported camera models
Use gphoto to object a list of supported cameras and introduce
a new dialog for showing them. Fixes bug #19953
Daniel P. Berrange [Sat, 1 Sep 2012 16:06:57 +0000 (09:06 -0700)]
Remove obsolete GTK 2.x conditionals
Since we require GTK >= 3.0, we can remove conditionals based
on GTK 2.x
Daniel P. Berrange [Sat, 1 Sep 2012 16:05:29 +0000 (09:05 -0700)]
Fix build on GTK < 3.4
The GDK_SCROLL_SMOOTH constant is only available in GTK >= 3.4
Bug #19918
Daniel P. Berrange [Sat, 1 Sep 2012 16:03:58 +0000 (09:03 -0700)]
Rename 'index' variable to 'idx' to avoid symbol clash
There is a global function called 'index' in some headers, so
local variables should not use the same name. Bug #19918
Daniel P. Berrange [Sat, 1 Sep 2012 15:52:11 +0000 (08:52 -0700)]
Change gfloat to gdouble in image display
There is some inconsistent use of gfloat vs gdouble in files.
Switch to using gdouble in the image display to address this.
Bug #20122
Daniel P. Berrange [Sat, 1 Sep 2012 15:47:25 +0000 (08:47 -0700)]
Fix some data types to use the glib variants
Daniel P. Berrange [Sat, 1 Sep 2012 15:47:25 +0000 (08:47 -0700)]
Fix aspect ratio string->double conversion to be locale-indepedent
The strtod() function has variable meaning for '.' according to
the locale. This caused the aspect ratio conversions to go wrong.
Switch to using g_ascii_strtod() instead. Bug #19929
Daniel P. Berrange [Thu, 30 Aug 2012 23:43:39 +0000 (16:43 -0700)]
Add object type checking to all backend public APIs
Daniel P. Berrange [Thu, 30 Aug 2012 19:35:29 +0000 (12:35 -0700)]
Add missing include of locale.h
Daniel P. Berrange [Thu, 30 Aug 2012 19:35:17 +0000 (12:35 -0700)]
Fix memory handling when updating plugins
Daniel P. Berrange [Thu, 16 Aug 2012 12:05:24 +0000 (13:05 +0100)]
Maintain plugin list in preferences & load them on startup
Introduce a new preference which stores the list of plugins
which are loaded. Use the PeasGtkPluginEngine widget to allow
the user to enable/disable plugins
Daniel P. Berrange [Thu, 16 Aug 2012 11:17:51 +0000 (12:17 +0100)]
Load Peas introspection data
The Peas library requires that its GObject Introspection metadata
is loaded prior to searching for plugins
Daniel P. Berrange [Mon, 27 Jun 2011 22:38:58 +0000 (23:38 +0100)]
Add support for displaying an image histogram in the control panel
The control panel is changed to be always visible even when no
camera is connected. This is to allow it to display the histogram
for the selected image
Daniel P. Berrange [Sun, 12 Aug 2012 22:46:01 +0000 (23:46 +0100)]
Don't clear image pixbuf while a popup is still open
Daniel P. Berrange [Sun, 12 Aug 2012 22:45:43 +0000 (23:45 +0100)]
Ensure popup-close signal is always invoked in all code paths