- Use g_build_filename to concat path elements
- Use g_get_home_dir as fallback
Glib offers a function to retrieve the home directory of the current user.
As it is not based on $HOME, we use it as a fallback function.
See http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-home-dir
Fix a bug that causes crashes when using "Maps Download" tool.
The crash can be reproduced consistently using the followings:
1. start viking without argument
2. create a map layer, using default settings.
3. select the map layer.
4. select "Maps Download" tool on toolbar.
5. click anywhere on the map (the viewport)
This problem was due to the mode of the center coord was not initialised.
THe problem is now fixed.
Make viking's default start location somewhere more likely has maps.
The location before this fix was virtually nowhere in the sea which
has no maps from most popular sources. This can be quite confusing
for first time users who don't even know how to navigate to a location
that has maps.
Viking now starts in New York City. Not because it is my most favourite
place on earth (which is Sydney BTW), but it is because we more likely
find maps there.
Refactoring: retrieve the VikWindow from the VikViewport via its GtkWidget nature
Instead of storing one more reference in the VikVewport structure,
we use the fact that VikWindow is the top level window. So, it is possible
to retrieve it from any of its children. And, hopefully, VikViewport
is also a GtkWidget, child of the main window.
Fix: crash when "applying" a map layer property dialog
Bug reported by Øyvind Ottestad
1) Add a map layer
2) Right-click the map-layer and change one of the settings (in my case,
unchecking auto-download maps)
3) Program crashes
Disable Expedia map layer by default (as it is not working)
The Expedia map layer is not working since long time (see issue #1211389).
No need to activate a bogus stuff. Interested users can use
--enable-expedia
A new menu entry allows to upload the data of a TrwLayer to OpenStreetMap
as a GPX data file.
Technics:
The button opens a dialog to request the needed parameters:
- authentification informations (email and password)
- a filename (initially built with the name of the TrwLayer)
- the descriptios, tags and visibility of the trace
Then, a background thread is activated.
TODO:
- Check the parameter (not empty, syntactically correct tags)
- Error handling: as the upload is threaded, the error is not displayed
- Allow to upload a simple track (not a whole TrwLayer)
It is no more a optional feature, but an "hard" requirement.
The main reason is that it is time consuming to maintain code
to work with and without libcurl. Furthermore, libcurl is available
in a lot of distributions now.
Quy Tonthat [Wed, 15 Aug 2007 02:57:57 +0000 (02:57 +0000)]
Old google modes are now disabled by default.
* New --enable-old-google for configure script to allow users to enable
the feature.
* When old google modes are disabled, their view modes will not be shown
on view menu.
* Fix bugs that prevent Google Maps from being set as default map when
creating new map layer.
Quy Tonthat [Wed, 8 Aug 2007 14:55:43 +0000 (14:55 +0000)]
Make Google Map default map type.
Map mode selection is the most confusing "feature" left on viking for many
new users. Until someone has time to fix it (auto view mode, perhaps), we
now set the default map mode to Google Map, assuming it is the most widely used
for viking users.
Acquiring GeoCaches nolonger works. While waiting for being fixed, it is now
disabled to avoid confusing for users. The codes can be re-enabled using
configure --enable-geocaches.
Eliminate the needs of entering DEM files for every single track/waypoint layer.
TODO:
- When there are more than one DEM sources for a track point, select the one
with best resolution.
- To improve prformance keep a sorted list (sorted by lat/lon).
Fixed bugs that caused "draw_scale" and "draw_centermark" not consistent.
Fixed following bugs related to scale and centermark:
- View menu items did not always reflect correctly when loading from files.
- View menu items and the viewport did not always have the same state
(on/off)
Fix bugs that caused crashes on gps download/upload.
The problem was caused by the parser for gpsbabel debug output.
The fix should stop viking from crashing, but the progress dialog still may not
display counters accurately for some model of GPS. The fix was only tested
with Garmin GPS 12. Fixing problems for other GPS requires output of
"gpsbabel -D 9 -t -w -i garmin -f /dev/ttyUSB0 -o gpx -F /dev/null"
This fix also plugged a memory leak in the parser..
Make "Save Image" and "Save Image Directory" dialogs reusable.
The two dialogs are now more consistent with "Save" and "Save As" dialogs.
This also enables them to remember the last directory used (annoyance otherwise).
This m4 module is necessary, at least to detect that libcurl is not available.
Sort of chicken/egg problem. Looking at gettextize, it seems that the
correct solution is to copy the m4 script of optional modules in a m4 directory
ensuring they will be found everywhere.