]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
11 years agoMerge branch 'WikipediaPointsRework'
Rob Norris [Sat, 19 Jan 2013 11:15:39 +0000 (11:15 +0000)]
Merge branch 'WikipediaPointsRework'

11 years ago[DOC] Update Wikipedia Waypoints to be from the Acquire menu level.
Rob Norris [Sat, 19 Jan 2013 11:15:09 +0000 (11:15 +0000)]
[DOC] Update Wikipedia Waypoints to be from the Acquire menu level.

11 years agoFix geonamessearch to handle not being able to map a file to memory.
Rob Norris [Mon, 26 Nov 2012 23:41:58 +0000 (23:41 +0000)]
Fix geonamessearch to handle not being able to map a file to memory.

11 years agoUse Wikipedia featue type to generate a suitable waypoint icon
Rob Norris [Sun, 25 Nov 2012 22:07:38 +0000 (22:07 +0000)]
Use Wikipedia featue type to generate a suitable waypoint icon

11 years agoUse elevation values in creating waypoints from Wikipedia.
Rob Norris [Sun, 25 Nov 2012 21:36:38 +0000 (21:36 +0000)]
Use elevation values in creating waypoints from Wikipedia.

11 years agoAllow for getting more Wikipedia Waypoints (up to 20).
Rob Norris [Sun, 25 Nov 2012 21:35:00 +0000 (21:35 +0000)]
Allow for getting more Wikipedia Waypoints (up to 20).

Make the dialog scrollable to view longer lists.

One day might make this value configurable somewhere.

11 years agoAll translated versions to select appropriate language Wikipedia articles.
Rob Norris [Sun, 25 Nov 2012 19:35:07 +0000 (19:35 +0000)]
All translated versions to select appropriate language Wikipedia articles.

11 years agoAllow the columns to be sortable in the Wikipedia Waypoints that are available.
Rob Norris [Sun, 25 Nov 2012 19:33:35 +0000 (19:33 +0000)]
Allow the columns to be sortable in the Wikipedia Waypoints that are available.

Make sure selected items are the correct references to stored items.

11 years agoDecide the 'feature' type is more useful than seeing the country code.
Rob Norris [Sun, 25 Nov 2012 17:41:05 +0000 (17:41 +0000)]
Decide the 'feature' type is more useful than seeing the country code.

11 years agoAdd getting Wikipedia Waypoints via the File->Acquire menu method.
Rob Norris [Tue, 8 Jan 2013 01:43:09 +0000 (01:43 +0000)]
Add getting Wikipedia Waypoints via the File->Acquire menu method.

Auto creates a TrackWaypoint layer.

11 years agoFix geonames country pattern
Rob Norris [Tue, 8 Jan 2013 01:41:59 +0000 (01:41 +0000)]
Fix geonames country pattern

11 years agoSimplify getting bounds for wikipedia waypoints by reusing existing function.
Rob Norris [Fri, 23 Nov 2012 22:18:10 +0000 (22:18 +0000)]
Simplify getting bounds for wikipedia waypoints by reusing existing function.

11 years agoSave Wikipedia Waypoint links in a simple format as the waypoint comment.
Rob Norris [Fri, 23 Nov 2012 21:14:31 +0000 (21:14 +0000)]
Save Wikipedia Waypoint links in a simple format as the waypoint comment.

This allows the link to be opened within Viking via the recent change in:
commit SHA1:7f2742755c3243d3ddd58692998a658a89b4adcf

11 years agoRemove useless 'selected' check box on Wikipedia points creation method.
Rob Norris [Thu, 22 Nov 2012 02:56:52 +0000 (02:56 +0000)]
Remove useless 'selected' check box on Wikipedia points creation method.

The list itself is multi-selectable and is now enabled to determine what should be created.
This has many advantages such as:
. Being able to click anywhere on line to select it
. Using Ctrl+A to select everything.

11 years agoMove 'Add Wikipedia Waypoints' into the Acquire Menu in the TrackWaypoint Layer.
Rob Norris [Thu, 22 Nov 2012 02:45:58 +0000 (02:45 +0000)]
Move 'Add Wikipedia Waypoints' into the Acquire Menu in the TrackWaypoint Layer.

Relabel and reassign accelerators as necessary.

11 years agoSimplify layer update redraw in determining the gtk update method.
Rob Norris [Fri, 11 Jan 2013 23:35:26 +0000 (23:35 +0000)]
Simplify layer update redraw in determining the gtk update method.

Use the thread value itself to determine whether it's from the main thread or not.

11 years agoFix: Improve internal redrawing method for layer panel updates.
Rob Norris [Fri, 11 Jan 2013 23:27:34 +0000 (23:27 +0000)]
Fix: Improve internal redrawing method for layer panel updates.

Remove hopefully the last place where updating the display is performed from a background thread
Use the thread value to see if it's the main thread or not and then
use the appropriate gtk idle drawing methods for the layers_panel update.

11 years agoStore the main thread value so comparisons can be made to determine the gdk update...
Rob Norris [Fri, 11 Jan 2013 23:25:31 +0000 (23:25 +0000)]
Store the main thread value so comparisons can be made to determine the gdk update method

11 years agoAllow acquiring an URL with a username/password authenticated download.
Rob Norris [Fri, 11 Jan 2013 01:47:58 +0000 (01:47 +0000)]
Allow acquiring an URL with a username/password authenticated download.

Have to extend the parameters in the datasource method to pass around download options.

11 years agoAllow downloading with authentication via curl
Rob Norris [Wed, 21 Nov 2012 19:44:48 +0000 (19:44 +0000)]
Allow downloading with authentication via curl

New DownloadMapOption to specify the username and password as a single string of the format 'username:password'

11 years agoAllow an acquire datasource method to *not* have to use a threading mechanism.
Rob Norris [Fri, 23 Nov 2012 21:10:21 +0000 (21:10 +0000)]
Allow an acquire datasource method to *not* have to use a threading mechanism.

Restructure acquire thread usage to enable commonalities for the non thread method to work.

11 years agoFix screenshot included in previous commit
Guilhem Bonnefille [Thu, 17 Jan 2013 21:08:42 +0000 (22:08 +0100)]
Fix screenshot included in previous commit

11 years agoAdd bearing information while creating route/track
Guilhem Bonnefille [Thu, 17 Jan 2013 20:53:41 +0000 (21:53 +0100)]
Add bearing information while creating route/track

Add more information in status bar while creating route or track.
These informations are:
- bearing
- step distance

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
11 years agoAvoid CRITICAL warnings when updating a waypoint. Check the symbol value is something...
Rob Norris [Wed, 16 Jan 2013 00:55:21 +0000 (00:55 +0000)]
Avoid CRITICAL warnings when updating a waypoint. Check the symbol value is something before attempting to use it.

Error introduced in commit SHA: 70cefedcb427c34e2e3db3bbfcc7e140d55b31a8

11 years agoFix routes display in different coordinate views.
Rob Norris [Wed, 16 Jan 2013 00:37:49 +0000 (00:37 +0000)]
Fix routes display in different coordinate views.

Missed from the GPX-Routes code addition SHA: 0d2b891f5f4673f0dd1142dcd7e1eb08e4248090

11 years agoAllow attempting to open a URL in a waypoint comment or description.
Rob Norris [Fri, 23 Nov 2012 20:55:59 +0000 (20:55 +0000)]
Allow attempting to open a URL in a waypoint comment or description.

Very simple check to see if the text starts with 'http' before attempting to open it.

11 years ago[QA] Mark some GPS layer strings for translation.
Rob Norris [Sat, 12 Jan 2013 19:59:01 +0000 (19:59 +0000)]
[QA] Mark some GPS layer strings for translation.

11 years ago[QA] Factor the way to compute window's name
Guilhem Bonnefille [Mon, 14 Jan 2013 22:03:07 +0000 (23:03 +0100)]
[QA] Factor the way to compute window's name

11 years ago[QA] Use specific type GHashTable *, instead of generic gpointer.
Rob Norris [Fri, 11 Jan 2013 23:38:19 +0000 (23:38 +0000)]
[QA] Use specific type GHashTable *, instead of generic gpointer.

Not quite sure why I thought I couldn't use the proper type at the initial time of writing this code!
Probably got carried away as tracks + waypoint types can't be used directly.

11 years agoOptimise: get reference to VikWindow only once per TrackWaypoint layer drawing update.
Rob Norris [Sat, 5 Jan 2013 13:59:50 +0000 (13:59 +0000)]
Optimise: get reference to VikWindow only once per TrackWaypoint layer drawing update.

Also makes the code a little more compact.

11 years ago[QA] Better variable name usage following the change from name to an id.
Rob Norris [Sat, 5 Jan 2013 13:44:27 +0000 (13:44 +0000)]
[QA] Better variable name usage following the change from name to an id.

11 years ago[QA] Add specific enumeration for route finder tool
Rob Norris [Sat, 5 Jan 2013 13:34:50 +0000 (13:34 +0000)]
[QA] Add specific enumeration for route finder tool

11 years agoChange TrackWaypoint properties that are radiogroups into combo boxes for compactness...
Rob Norris [Wed, 5 Dec 2012 18:51:55 +0000 (18:51 +0000)]
Change TrackWaypoint properties that are radiogroups into combo boxes for compactness of displayed dialog.

11 years agoAdd tooltips for Preferences and Layer Parameters.
Rob Norris [Sun, 2 Dec 2012 20:10:12 +0000 (20:10 +0000)]
Add tooltips for Preferences and Layer Parameters.

Only set a few tips, as most values are self explanatory.
Align all VikLayerParam data usage and use better index referencing.

11 years ago[QA] Tidy up preferences.c
Rob Norris [Wed, 5 Dec 2012 18:35:20 +0000 (18:35 +0000)]
[QA] Tidy up preferences.c

11 years ago[QA] Remove unused viewport variables.
Rob Norris [Fri, 23 Nov 2012 11:57:29 +0000 (11:57 +0000)]
[QA] Remove unused viewport variables.

11 years ago[QA] Remove unneeded include statement.
Rob Norris [Wed, 21 Nov 2012 17:30:02 +0000 (17:30 +0000)]
[QA] Remove unneeded include statement.

11 years agoAvoid gpsbabel conversion on OSM traces
Guilhem Bonnefille [Wed, 9 Jan 2013 22:11:27 +0000 (23:11 +0100)]
Avoid gpsbabel conversion on OSM traces

Disable the gpsbabel conversion as retrieved data is already GPX.

11 years agoAllow to download and acquire a GPX without gpsbabel
Guilhem Bonnefille [Wed, 9 Jan 2013 22:07:21 +0000 (23:07 +0100)]
Allow to download and acquire a GPX without gpsbabel

Like a_babel_convert_from_shellcommand, when input_file_type is NULL
gpsbabel is not used. Instead, the file is read just after download.

11 years ago[DOC] Improve aquire's reference documentation
Guilhem Bonnefille [Wed, 9 Jan 2013 21:48:01 +0000 (22:48 +0100)]
[DOC] Improve aquire's reference documentation

11 years agoSimplify acquire feature
Guilhem Bonnefille [Wed, 9 Jan 2013 21:47:16 +0000 (22:47 +0100)]
Simplify acquire feature

Remove type member from VikDataSourceInterface and use only process function.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
11 years ago[DOC] Improve babel's reference documentation
Guilhem Bonnefille [Wed, 9 Jan 2013 21:27:14 +0000 (22:27 +0100)]
[DOC] Improve babel's reference documentation

11 years ago[DOC] Reformat viktrack's reference documentation
Guilhem Bonnefille [Mon, 7 Jan 2013 22:22:12 +0000 (23:22 +0100)]
[DOC] Reformat viktrack's reference documentation

11 years ago[DOC] Format acquire's reference documentation
Guilhem Bonnefille [Mon, 7 Jan 2013 22:21:00 +0000 (23:21 +0100)]
[DOC] Format acquire's reference documentation

11 years agoThe vikgoto should not be calling display updates.
Rob Norris [Mon, 26 Nov 2012 22:35:29 +0000 (22:35 +0000)]
The vikgoto should not be calling display updates.

Thus remove unused parameter VikLayersPanel from the goto interface.
Updates of the display are controlled from the main Window.

11 years agoFactor download to a temporary file into a single reused function.
Rob Norris [Mon, 26 Nov 2012 00:07:10 +0000 (00:07 +0000)]
Factor download to a temporary file into a single reused function.

11 years agoThe geonamesearch should not be calling display updates.
Rob Norris [Fri, 23 Nov 2012 21:06:35 +0000 (21:06 +0000)]
The geonamesearch should not be calling display updates.

Thus remove unused parameter VikLayersPanel from the geonamesearch interface.
Updates of display are controlled from the TrackWaypoint layer.

11 years agoRemove of temporary file after processing Geonames Wikipedia information.
Rob Norris [Sun, 25 Nov 2012 21:37:51 +0000 (21:37 +0000)]
Remove of temporary file after processing Geonames Wikipedia information.

11 years agoFix an acquire callback type usage.
Rob Norris [Mon, 26 Nov 2012 23:37:58 +0000 (23:37 +0000)]
Fix an acquire callback type usage.

11 years agoAllow sorting on the column of the select from list dialog.
Rob Norris [Sun, 25 Nov 2012 21:44:07 +0000 (21:44 +0000)]
Allow sorting on the column of the select from list dialog.

Note there is only one column, so this doesn't effect the selection method as it refers to that column.

11 years ago[QA] Fixup go to Geocache Webpage
Rob Norris [Fri, 23 Nov 2012 20:51:26 +0000 (20:51 +0000)]
[QA] Fixup go to Geocache Webpage

Missed this usage, as a follow on from commit SHA1:c9570f8616c6eec62695f29757cd6913efadebdd

11 years ago[QA] Make more local functions static.
Rob Norris [Thu, 22 Nov 2012 02:51:38 +0000 (02:51 +0000)]
[QA] Make more local functions static.

11 years ago[QA] Improve header usage
Rob Norris [Thu, 22 Nov 2012 02:48:07 +0000 (02:48 +0000)]
[QA] Improve header usage

11 years ago[QA] Prevent potential clash of accelerator
Rob Norris [Thu, 22 Nov 2012 02:46:34 +0000 (02:46 +0000)]
[QA] Prevent potential clash of accelerator

11 years agoMerge branch 'GPX-Route+Icons+Colour'
Rob Norris [Sat, 5 Jan 2013 13:13:20 +0000 (13:13 +0000)]
Merge branch 'GPX-Route+Icons+Colour'

11 years agoFix Google Route Finding usage as a route type.
Rob Norris [Sat, 5 Jan 2013 12:59:21 +0000 (12:59 +0000)]
Fix Google Route Finding usage as a route type.

11 years agoMaintain track properties when splitting a track.
Rob Norris [Wed, 2 Jan 2013 21:18:53 +0000 (21:18 +0000)]
Maintain track properties when splitting a track.

Otherwise settings such as the comment, description and track colour are lost.

11 years ago[DOC] Help improvement - mention automatic view on file load.
Rob Norris [Sat, 17 Nov 2012 01:24:22 +0000 (01:24 +0000)]
[DOC] Help improvement - mention automatic view on file load.

11 years ago[DOC] Amend help for addition of Routes capability.
Rob Norris [Mon, 12 Nov 2012 01:19:27 +0000 (01:19 +0000)]
[DOC] Amend help for addition of Routes capability.

11 years ago[DOC] Amend and tidy man page for addition of Routes capability.
Rob Norris [Mon, 12 Nov 2012 01:18:42 +0000 (01:18 +0000)]
[DOC] Amend and tidy man page for addition of Routes capability.

11 years ago[DOC] Remove old doc. Use the User Manual instead.
Rob Norris [Mon, 12 Nov 2012 01:18:06 +0000 (01:18 +0000)]
[DOC] Remove old doc. Use the User Manual instead.

11 years agoEnable display of GPS Device on GPS Upload.
Rob Norris [Sun, 11 Nov 2012 18:55:39 +0000 (18:55 +0000)]
Enable display of GPS Device on GPS Upload.

Commonize process of determining GPS Device as it doesn't matter whether we're uploading or downloading

11 years agoAdd a sample route GPX file. Useful for testing.
Rob Norris [Thu, 8 Nov 2012 23:18:41 +0000 (23:18 +0000)]
Add a sample route GPX file. Useful for testing.

11 years agoSF#2692629: Allow control of GPX file saving track order
Rob Norris [Sun, 4 Nov 2012 11:41:43 +0000 (11:41 +0000)]
SF#2692629: Allow control of GPX file saving track order

A new preference allows setting the sort order used in saving tracks to a GPX file.
The options are alphabetical or by time.

11 years agoImprove contrast between default track colours.
Rob Norris [Sun, 28 Oct 2012 23:55:04 +0000 (23:55 +0000)]
Improve contrast between default track colours.

11 years agoRewrite TrackWaypoint layer copy/paste to use GbyteArray rather than using a temporar...
Rob Norris [Sun, 28 Oct 2012 10:59:53 +0000 (10:59 +0000)]
Rewrite TrackWaypoint layer copy/paste to use GbyteArray rather than using a temporary GPX file.

This is an improvement since it won't miss data not compatible with the GPX save.
It is also the way other layer copy/paste works.

11 years agoSimplify internals of layer copy and paste for waypoints and tracks.
Rob Norris [Sat, 27 Oct 2012 20:09:12 +0000 (21:09 +0100)]
Simplify internals of layer copy and paste for waypoints and tracks.

Use g_byte_arrays instead of low level memory management.

11 years agoSF#2564997: Enable specific track colours in default draw by track mode.
Rob Norris [Sat, 27 Oct 2012 10:51:38 +0000 (11:51 +0100)]
SF#2564997: Enable specific track colours in default draw by track mode.

Colours are allocated automatically (as previously) if no colour has been assigned.
Colour of the track is shown in the treeview as well.
The colour is saved in .vik files.
Changing the colour is available in the track's properties dialog.
By default new routes are red, so tweaked route icons to match.

11 years agoFix odd issue with waypoint symbol not getting set on copy.
Rob Norris [Thu, 25 Oct 2012 20:23:31 +0000 (21:23 +0100)]
Fix odd issue with waypoint symbol not getting set on copy.

For some reason this only happens after the description field was added to the Waypoint.
The old method messes with the memory somehow, so now go for a simple copy of the individual fields.

11 years agoDisplay waypoint symbols in the layers panel tree view.
Rob Norris [Thu, 25 Oct 2012 20:22:35 +0000 (21:22 +0100)]
Display waypoint symbols in the layers panel tree view.

Force waypoint symbols for the tree view to always be 'small'

11 years agoFix allocation of tree iterator as it may be used some point in time in the future.
Rob Norris [Tue, 23 Oct 2012 23:04:59 +0000 (00:04 +0100)]
Fix allocation of tree iterator as it may be used some point in time in the future.

Otherwise if non static the scope of the variable has finished when used in the layer menu callbacks.

11 years agoEnable setting the icon on a viktreeview item.
Rob Norris [Tue, 23 Oct 2012 23:02:57 +0000 (00:02 +0100)]
Enable setting the icon on a viktreeview item.

11 years agoReplace 'Add Track' tool with 'Create Route' tool.
Rob Norris [Sun, 21 Oct 2012 23:01:25 +0000 (00:01 +0100)]
Replace 'Add Track' tool with 'Create Route' tool.

Create Route is essentially the same as the Create Track, but enables creating a route instead.
Rename and update appropriate icons.

Make a common function to deal with creating new points.
Enable switching between these two create tools.

11 years agoImprove warning message, no creating is happening here.
Rob Norris [Sun, 21 Oct 2012 22:55:21 +0000 (23:55 +0100)]
Improve warning message, no creating is happening here.

11 years agoNow allowed same track names so an overwrite warning is not necessary any more.
Rob Norris [Sun, 21 Oct 2012 22:52:54 +0000 (23:52 +0100)]
Now allowed same track names so an overwrite warning is not necessary any more.

11 years agoAdd ability to append other type of track or route to a route or track.
Rob Norris [Thu, 18 Oct 2012 21:34:31 +0000 (22:34 +0100)]
Add ability to append other type of track or route to a route or track.

11 years agoEnable converting a track to a route, or a route to a track via the TrackWaypoint...
Rob Norris [Wed, 17 Oct 2012 22:01:08 +0000 (23:01 +0100)]
Enable converting a track to a route, or a route to a track via the TrackWaypoint layer menu.

Converting a track to a route removes track timestamps and other unsupported route data.
So if a track contains such data, the user needs to confirm the operation.

11 years agoAdd support for GPX routes - as a new sublayer type of the now less accurately named...
Rob Norris [Wed, 17 Oct 2012 00:37:18 +0000 (01:37 +0100)]
Add support for GPX routes - as a new sublayer type of the now less accurately named TrackWaypoint layer

Most previous track functionality is made avaliable on this Route type.
Routepoints can have an elevation property.
GPX Routes can be optionally downloaded/uploaded from GPS devices via the Acquire, GPS layer or menu methods.
GPX files with routes may be imported and exported.
Viking .vik files save route and routepoints.

Internally, a route is implemented as a simple boolean flag as part of the track's property.

11 years agoAdd paste menu option in the sublayer menu container for Tracks and Waypoints.
Rob Norris [Sun, 14 Oct 2012 10:11:45 +0000 (11:11 +0100)]
Add paste menu option in the sublayer menu container for Tracks and Waypoints.

Make it available only when sublayer data is in the clipboard.

11 years agoAdd method to return the type of Viking data held in the clipboard
Rob Norris [Sun, 14 Oct 2012 10:11:01 +0000 (11:11 +0100)]
Add method to return the type of Viking data held in the clipboard

11 years agoAdd options to start making a new track and finishing it from the TrackWaypoint layer...
Rob Norris [Sun, 14 Oct 2012 09:19:41 +0000 (10:19 +0100)]
Add options to start making a new track and finishing it from the TrackWaypoint layer menus

11 years agoAdd new 'New' submenu for the TrackWaypoint layer
Rob Norris [Sun, 14 Oct 2012 08:46:35 +0000 (09:46 +0100)]
Add new 'New' submenu for the TrackWaypoint layer

11 years agoMove TrackWaypoint layer menu view sublayer options into a submenu
Rob Norris [Sat, 13 Oct 2012 18:55:21 +0000 (19:55 +0100)]
Move TrackWaypoint layer menu view sublayer options into a submenu

11 years agoEnable tooltip for track and waypoint sublayer containers.
Rob Norris [Sat, 13 Oct 2012 18:32:56 +0000 (19:32 +0100)]
Enable tooltip for track and waypoint sublayer containers.

11 years agoMake sublayer containers for track and waypoint sublayers only visible in the layers...
Rob Norris [Sat, 13 Oct 2012 17:48:00 +0000 (18:48 +0100)]
Make sublayer containers for track and waypoint sublayers only visible in the layers panel when they actually contain something

11 years agoFix combo box zoom level selection calculation.
Rob Norris [Sat, 5 Jan 2013 12:40:26 +0000 (12:40 +0000)]
Fix combo box zoom level selection calculation.

11 years ago[QA] Better internal variable name in track drawing
Rob Norris [Mon, 22 Oct 2012 22:00:07 +0000 (23:00 +0100)]
[QA] Better internal variable name in track drawing

11 years ago[QA] Make a local function static.
Rob Norris [Fri, 19 Oct 2012 19:26:58 +0000 (20:26 +0100)]
[QA] Make a local function static.

11 years agoRestore Google Directions feature
Guilhem Bonnefille [Fri, 4 Jan 2013 07:32:52 +0000 (08:32 +0100)]
Restore Google Directions feature

KML is no more supported but gpsbabel support JSON format in HTML page.

Google Directions is no more a separated configure option: there is no
reason to distinguish from other Google feature.

I also disabled the file checking when data is downloaded via
a_babel_convert_from_url function. The reason is this function can be
used to download any sort of data, not only XML. Currently, it is used
to download GPX (for OSM) and HTML (for Google).
An other solution was to select the checking function using the input
type (with a nice serie of tests on strcmp). But as gpsbabel will do the
check, I consider this check is not needed.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
11 years ago[QA] Remove uneeded const modifier
Guilhem Bonnefille [Thu, 3 Jan 2013 22:18:18 +0000 (23:18 +0100)]
[QA] Remove uneeded const modifier

The g_strdup function returns dynamically allocated string.

11 years agoUse local variable instead of multiple GCast
Guilhem Bonnefille [Thu, 3 Jan 2013 21:02:26 +0000 (22:02 +0100)]
Use local variable instead of multiple GCast

GObject cast operator use CPU. There is no reason to cast more
than one time in this function.

11 years ago[QA] Add ifdef macro for Google Directions related
Guilhem Bonnefille [Sun, 30 Dec 2012 22:23:54 +0000 (23:23 +0100)]
[QA] Add ifdef macro for Google Directions related

11 years agoAdd debug message tracing name of temporary files
Guilhem Bonnefille [Sun, 30 Dec 2012 20:41:10 +0000 (21:41 +0100)]
Add debug message tracing name of temporary files

11 years ago[QA] Replace g_mapped_file_free
Guilhem Bonnefille [Sun, 30 Dec 2012 14:01:30 +0000 (15:01 +0100)]
[QA] Replace g_mapped_file_free

The function g_mapped_file_free is deprecated since g_mapped_file_unref
was introduced in GLib 2.22.
As Viking currently build with GLib 2.14, we add a #define to support
pre and post 2.22 versions and avoid warning in both cases.

11 years ago[QA] Remove uneeded compatibility
Guilhem Bonnefille [Sun, 30 Dec 2012 13:32:16 +0000 (14:32 +0100)]
[QA] Remove uneeded compatibility

GLib dependency is >= 2.14 so we do not have to redefine such
functions.

11 years ago[I18N] Mark translatable string
Guilhem Bonnefille [Sun, 30 Dec 2012 13:23:20 +0000 (14:23 +0100)]
[I18N] Mark translatable string

11 years ago[QA] Remove unusable constructor
Guilhem Bonnefille [Wed, 12 Dec 2012 21:46:51 +0000 (22:46 +0100)]
[QA] Remove unusable constructor

VikExtTool is abstract: no need for a constructor.

11 years ago[QA] Extract utility function from viktrwlayer
Guilhem Bonnefille [Thu, 13 Dec 2012 13:10:57 +0000 (14:10 +0100)]
[QA] Extract utility function from viktrwlayer

File src/viktrwlayer.c is huge enough to avoid utility functions.

11 years ago[QA] Use dedicated macro for creating abstract type
Guilhem Bonnefille [Tue, 11 Dec 2012 12:20:44 +0000 (13:20 +0100)]
[QA] Use dedicated macro for creating abstract type

11 years ago[QA] Replace code by GObject macro (viklayer)
Guilhem Bonnefille [Fri, 7 Dec 2012 21:32:02 +0000 (22:32 +0100)]
[QA] Replace code by GObject macro (viklayer)

It seems better to use the simple and expressive G_DEFINE_TYPE macro
instead of a quite obscure and verbose code to declare a new type.

Some functions were renamed in order to follow suggested name conventions.