libchamplain:vpoluceno-clone.git
8 years agoUse correct version macro for champlain-gtk-uninstalled.pc.in
Jiří Techet [Tue, 1 Jun 2010 22:53:07 +0000 (00:53 +0200)]
Use correct version macro for champlain-gtk-uninstalled.pc.in

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoSeparate champalin and champlain-memphis.
Tomaž Vajngerl [Mon, 31 May 2010 18:31:23 +0000 (20:31 +0200)]
Separate champalin and champlain-memphis.
Make regeneration of bindings smarter.

8 years agoAdd memphis specific stuff inside champlain bindings.
Tomaž Vajngerl [Sat, 29 May 2010 09:19:45 +0000 (11:19 +0200)]
Add memphis specific stuff inside champlain bindings.

8 years agoRebuid gi file and create new vapi again.
Tomaž Vajngerl [Tue, 25 May 2010 18:15:27 +0000 (20:15 +0200)]
Rebuid gi file and create new vapi again.

8 years agoVala bindings support
Tomaž Vajngerl [Tue, 25 May 2010 16:35:20 +0000 (18:35 +0200)]
Vala bindings support

8 years ago0.6.0 libchamplain-0-6 LIBCHAMPLAIN_0_6_0
Jiří Techet [Mon, 24 May 2010 22:13:38 +0000 (00:13 +0200)]
0.6.0

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoOne more missing local rendering file
Jiří Techet [Mon, 24 May 2010 21:12:19 +0000 (23:12 +0200)]
One more missing local rendering file

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd local rendering demo data to the distribution
Jiří Techet [Mon, 24 May 2010 20:45:27 +0000 (22:45 +0200)]
Add local rendering demo data to the distribution

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix cross-references in documentation
Jiří Techet [Mon, 24 May 2010 20:10:09 +0000 (22:10 +0200)]
Fix cross-references in documentation

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd glib-2.0.m4
Jiří Techet [Sun, 23 May 2010 22:16:05 +0000 (00:16 +0200)]
Add glib-2.0.m4

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd missing initialization of members of ChamplainMarker
Jiří Techet [Sun, 23 May 2010 17:09:54 +0000 (19:09 +0200)]
Add missing initialization of members of ChamplainMarker

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoSimplify the minimal-gtk demo
Jiří Techet [Sun, 23 May 2010 01:01:28 +0000 (03:01 +0200)]
Simplify the minimal-gtk demo

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd minimal demos
Jiří Techet [Fri, 21 May 2010 22:38:49 +0000 (00:38 +0200)]
Add minimal demos

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix segfault in local rendering demo on shutdown
Jiří Techet [Sat, 22 May 2010 22:45:20 +0000 (00:45 +0200)]
Fix segfault in local rendering demo on shutdown

On shutdown the image displaying tile loading state can get destroyed
before ChamplainView and if ChamplainView emits state change, it refers
to a destroyed image and crashes.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoSimplify content actor setting in ChamplainTile
Jiří Techet [Tue, 18 May 2010 22:21:51 +0000 (00:21 +0200)]
Simplify content actor setting in ChamplainTile

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoBump version number to 0.6
Jiří Techet [Tue, 18 May 2010 20:45:31 +0000 (22:45 +0200)]
Bump version number to 0.6

...to test if everything works as expected before the actual release.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd a comment about incrementing library version string
Jiří Techet [Tue, 18 May 2010 20:42:42 +0000 (22:42 +0200)]
Add a comment about incrementing library version string

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd dummy ChangeLog file
Łukasz Jernaś [Tue, 18 May 2010 07:56:09 +0000 (09:56 +0200)]
Add dummy ChangeLog file

8 years ago0.5.2 LIBCHAMPLAIN_0_5_2
Jiří Techet [Mon, 17 May 2010 22:29:36 +0000 (00:29 +0200)]
0.5.2

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoGenerate changelog the same way as recommended by live.gnome.org
Jiří Techet [Mon, 17 May 2010 21:38:34 +0000 (23:38 +0200)]
Generate changelog the same way as recommended by live.gnome.org

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoEnable introspection for distcheck
Jiří Techet [Sun, 16 May 2010 13:10:31 +0000 (15:10 +0200)]
Enable introspection for distcheck

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoCheck validity of the top left tile to be loaded
Jiří Techet [Sun, 16 May 2010 12:57:08 +0000 (14:57 +0200)]
Check validity of the top left tile to be loaded

If it is outside the range, set it to the closest valid value. Prevents
crash when map panned left on low zoom level.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoPrevent crash on shutdown when markers are visible
Jiří Techet [Sat, 15 May 2010 23:51:06 +0000 (01:51 +0200)]
Prevent crash on shutdown when markers are visible

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoCall g_object_ref() on data passed to idle functions
Jiří Techet [Sat, 15 May 2010 22:55:11 +0000 (00:55 +0200)]
Call g_object_ref() on data passed to idle functions

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd traces to ChamplainView
Jiří Techet [Sat, 15 May 2010 19:26:16 +0000 (21:26 +0200)]
Add traces to ChamplainView

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoDisplay CFLAGS in configure summary
Jiří Techet [Sat, 15 May 2010 15:21:43 +0000 (17:21 +0200)]
Display CFLAGS in configure summary

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoGet rid of hardcoded version in docs makefile
Jiří Techet [Sat, 15 May 2010 14:55:50 +0000 (16:55 +0200)]
Get rid of hardcoded version in docs makefile

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoOne more fix of introspection compilation in other directory
Jiří Techet [Sat, 15 May 2010 14:55:08 +0000 (16:55 +0200)]
One more fix of introspection compilation in other directory

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoGet rid of clang static analysis tool warning about uninitialized value
Jiří Techet [Sat, 15 May 2010 14:53:42 +0000 (16:53 +0200)]
Get rid of clang static analysis tool warning about uninitialized value

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agonetwork-map-source: Use a better mechanism for error tile
Rob Bradford [Wed, 12 May 2010 13:14:23 +0000 (14:14 +0100)]
network-map-source: Use a better mechanism for error tile

Rather than using a clone which requires the source being mapped (parented and
visible) we instead pull the backing texture out from the ClutterTexture
ourselves and use that when creating the error tiles.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=618248

8 years agoUse correct cast
Jiří Techet [Fri, 14 May 2010 19:16:09 +0000 (21:16 +0200)]
Use correct cast

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoMake introspection compilation work in other directory too
Jiří Techet [Fri, 14 May 2010 18:57:34 +0000 (20:57 +0200)]
Make introspection compilation work in other directory too

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix strange introspection scanner warning
Jiří Techet [Fri, 14 May 2010 00:15:53 +0000 (02:15 +0200)]
Fix strange introspection scanner warning

There seems to be a bug in the introspection scanner which causes
some nonsense warnings - this workaround should fix it

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUse the new way for introspection makefile creation
Jiří Techet [Thu, 13 May 2010 23:37:21 +0000 (01:37 +0200)]
Use the new way for introspection makefile creation

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoReset the sql statement before bind_text also for stmt_select
Jiří Techet [Wed, 12 May 2010 23:24:04 +0000 (01:24 +0200)]
Reset the sql statement before bind_text also for stmt_select

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoReset the update prepared statement before each execution
Emmanuel Rodriguez [Sun, 21 Feb 2010 17:30:43 +0000 (18:30 +0100)]
Reset the update prepared statement before each execution

8 years agoGet rid of some warnings reported by clang static analysis tool
Jiří Techet [Wed, 12 May 2010 21:28:16 +0000 (23:28 +0200)]
Get rid of some warnings reported by clang static analysis tool

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd G_GNUC_UNUSED where appropriate so LLVM clang doesn't complain
Jiří Techet [Wed, 12 May 2010 19:48:05 +0000 (21:48 +0200)]
Add G_GNUC_UNUSED where appropriate so LLVM clang doesn't complain

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd missing shebang in python polygons demo
Jiří Techet [Wed, 12 May 2010 20:20:57 +0000 (22:20 +0200)]
Add missing shebang in python polygons demo

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoShip file pychamplainmemphis-constructors.defs
Victor Godoy Poluceno [Tue, 11 May 2010 19:13:52 +0000 (16:13 -0300)]
Ship file pychamplainmemphis-constructors.defs

8 years agoLike pyclutter-gtk the champlain-gtk in launcher-gtk.py demo must
Victor Godoy Poluceno [Tue, 11 May 2010 19:09:15 +0000 (16:09 -0300)]
Like pyclutter-gtk the champlain-gtk in launcher-gtk.py demo must
be the first to be imported

8 years agoAdd virtual proxy wrapper to ChamplainMapSource.get_projection
Victor Godoy Poluceno [Mon, 10 May 2010 21:57:55 +0000 (18:57 -0300)]
Add virtual proxy wrapper to ChamplainMapSource.get_projection

8 years agoUpdate ChamplainMapDataSource and ChamplainMemphisTileSource constructors to
Victor Godoy Poluceno [Mon, 10 May 2010 21:55:41 +0000 (18:55 -0300)]
Update ChamplainMapDataSource and ChamplainMemphisTileSource constructors to
new gobject API

8 years agoLatitude and longitude parameters of champlain_base_marker_set_position() swapped...
Jiří Techet [Tue, 11 May 2010 22:05:41 +0000 (00:05 +0200)]
Latitude and longitude parameters of champlain_base_marker_set_position() swapped in header

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFree proxy URI with soup_uri_free() instead of g_object_unref()
Jiří Techet [Tue, 11 May 2010 21:57:18 +0000 (23:57 +0200)]
Free proxy URI with soup_uri_free() instead of g_object_unref()

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFree GError when reporting an error
Emmanuel Rodriguez [Tue, 11 May 2010 21:50:22 +0000 (23:50 +0200)]
Free GError when reporting an error

8 years agoRemove debug print
Emmanuel Rodriguez [Tue, 11 May 2010 21:44:14 +0000 (23:44 +0200)]
Remove debug print

8 years agoEliminate warnings when compiling local-rendering demo
Jiří Techet [Tue, 11 May 2010 21:37:48 +0000 (23:37 +0200)]
Eliminate warnings when compiling local-rendering demo

Can't reproduce the original warnings myself but was reported in bugzilla.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix the unref of the previous image in champlain_marker_set_image
Jiří Techet [Tue, 11 May 2010 21:25:52 +0000 (23:25 +0200)]
Fix the unref of the previous image in champlain_marker_set_image

8 years agoAdd some missing G_BEGIN_DECLS/G_END_DECLS
Jiří Techet [Tue, 11 May 2010 21:12:40 +0000 (23:12 +0200)]
Add some missing G_BEGIN_DECLS/G_END_DECLS

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix an invalid cast if a view is passed a ChamplainLayer instead of a ChamplainSelect...
Emmanuel Rodriguez [Tue, 11 May 2010 19:59:49 +0000 (21:59 +0200)]
Fix an invalid cast if a view is passed a ChamplainLayer instead of a ChamplainSelectionLayer

button_release_cb can't assume that all objects in the layer group are
selection layers. Normal layers are also allowed.

8 years agoRemove libchamplain-gtk.types - it should be generated automatically
Jiří Techet [Mon, 10 May 2010 22:15:31 +0000 (00:15 +0200)]
Remove libchamplain-gtk.types - it should be generated automatically

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoMerge branch 'LIBCHAMPLAIN_0_4_5'
Jiří Techet [Mon, 10 May 2010 21:29:29 +0000 (23:29 +0200)]
Merge branch 'LIBCHAMPLAIN_0_4_5'

Conflicts:
AUTHORS
NEWS
configure.ac

8 years agoUpdate web page in configure.ac
Jiří Techet [Mon, 10 May 2010 20:37:59 +0000 (22:37 +0200)]
Update web page in configure.ac

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUpdate dependencies in README
Jiří Techet [Mon, 10 May 2010 20:37:29 +0000 (22:37 +0200)]
Update dependencies in README

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoDo not unref polygons
Jiří Techet [Mon, 10 May 2010 20:03:37 +0000 (22:03 +0200)]
Do not unref polygons

...they are owned by ChamplainView now.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoDo not generate 0 size clutter textures for polygons
Jiří Techet [Mon, 10 May 2010 20:02:40 +0000 (22:02 +0200)]
Do not generate 0 size clutter textures for polygons

Fix at the right place...

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoRemove unnecessary DIST_SUBDIRS
Jiří Techet [Mon, 10 May 2010 19:14:02 +0000 (21:14 +0200)]
Remove unnecessary DIST_SUBDIRS

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix a compilation issue with libsoup-gnome
Lorenzo Masini [Mon, 10 May 2010 19:11:54 +0000 (21:11 +0200)]
Fix a compilation issue with libsoup-gnome

8 years agoUpdate champlain-gtk docs
Jiří Techet [Sun, 9 May 2010 23:46:02 +0000 (01:46 +0200)]
Update champlain-gtk docs

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUpdate python defs
Jiří Techet [Sun, 9 May 2010 23:42:43 +0000 (01:42 +0200)]
Update python defs

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoMake the TOC of the manual more readable
Jiří Techet [Sun, 9 May 2010 22:43:39 +0000 (00:43 +0200)]
Make the TOC of the manual more readable

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoImprovements to the documentation and moving around some definitions
Jiří Techet [Sun, 9 May 2010 21:47:32 +0000 (23:47 +0200)]
Improvements to the documentation and moving around some definitions

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoGenerate types file automatically
Jiří Techet [Sun, 9 May 2010 13:31:13 +0000 (15:31 +0200)]
Generate types file automatically

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoMany improvements to the build process
Jiří Techet [Sat, 8 May 2010 22:01:50 +0000 (00:01 +0200)]
Many improvements to the build process

* be less verbose during build
* use templates for generated enum files

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUse new autogen.sh from gnome-common
Jiří Techet [Sat, 8 May 2010 21:55:24 +0000 (23:55 +0200)]
Use new autogen.sh from gnome-common

Fixes warning during build

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoSome build fixes
Jiří Techet [Sat, 8 May 2010 13:20:14 +0000 (15:20 +0200)]
Some build fixes

make distcheck should work now

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoRemove the outdated tutorial
Jiří Techet [Fri, 7 May 2010 23:01:42 +0000 (01:01 +0200)]
Remove the outdated tutorial

It was very incomplete and outdated and users will find much more
up-to date examples of how to use libchamplain in our demo apps.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUse the new INSTALL that is generated with recent autotools
Jiří Techet [Fri, 7 May 2010 22:56:57 +0000 (00:56 +0200)]
Use the new INSTALL that is generated with recent autotools

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoRemove the perl bindings for now as they are not updated yet
Jiří Techet [Fri, 7 May 2010 22:55:26 +0000 (00:55 +0200)]
Remove the perl bindings for now as they are not updated yet

It is expected they will be updated for 0.6 after its release and
re-introduced again.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoRemove "managed" bindings as they seem to be unmaintained
Jiří Techet [Fri, 7 May 2010 22:29:12 +0000 (00:29 +0200)]
Remove "managed" bindings as they seem to be unmaintained

Can be reintroduced any time in the future if there is someone
willing to maintain them.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix some introspection build problems
Jiří Techet [Fri, 7 May 2010 22:20:26 +0000 (00:20 +0200)]
Fix some introspection build problems

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUpdate champlain and champlainmemphis python bindings.
Victor Godoy Poluceno [Mon, 3 May 2010 21:18:10 +0000 (18:18 -0300)]
Update champlain and champlainmemphis python bindings.

Add new wraped functions and properly dispose of gboxed objects.

8 years agoMany changes in build process
Jiří Techet [Sat, 17 Apr 2010 20:19:59 +0000 (22:19 +0200)]
Many changes in build process

* make libchamplain independent of memphis so it can be built without it
* automatically generate library name based on version in autoconf configuration
* some necessary updates in python bindings
* minor updates everywhere

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd new file pychamplain-gtk-base.defs
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:55:11 +0000 (23:55 -0300)]
Add new file pychamplain-gtk-base.defs

8 years agoAdd support to virtual methods by using defsgen.py.
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:51:19 +0000 (23:51 -0300)]
Add support to virtual methods by using defsgen.py.

Reported by Jiří Techet.

8 years agoUse memphis.h include and add ChamplainBoundingBox sets
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:49:54 +0000 (23:49 -0300)]
Use memphis.h include and add ChamplainBoundingBox sets

8 years agoAdd new boxed type ChamplainBoundingBox
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:49:14 +0000 (23:49 -0300)]
Add new boxed type ChamplainBoundingBox

8 years agoUpdate .defs
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:48:37 +0000 (23:48 -0300)]
Update .defs

8 years agoJust include pychamplaingtk-base.defs
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:46:49 +0000 (23:46 -0300)]
Just include pychamplaingtk-base.defs

8 years agoUpdate required memphis version to 0.2
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:45:44 +0000 (23:45 -0300)]
Update required memphis version to 0.2

8 years agoUse memphis .defs in codegen
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:44:00 +0000 (23:44 -0300)]
Use memphis .defs in codegen

8 years agoShip pychamplaingtk-base.defs
Victor Godoy Poluceno [Tue, 6 Apr 2010 02:39:04 +0000 (23:39 -0300)]
Ship pychamplaingtk-base.defs

8 years agoMake the windows mkdtemp be robust with non-ascii characters too
Fridrich Štrba [Thu, 22 Apr 2010 15:01:04 +0000 (17:01 +0200)]
Make the windows mkdtemp be robust with non-ascii characters too

8 years agoUpdate maintainer information
Pierre-Luc Beaudoin [Thu, 22 Apr 2010 03:32:56 +0000 (23:32 -0400)]
Update maintainer information

8 years agoBuild fixes for windows
Fridrich Štrba [Tue, 20 Apr 2010 14:37:19 +0000 (16:37 +0200)]
Build fixes for windows

8 years agoRequire Memphis 0.2.1
Simon Wenner [Sat, 3 Apr 2010 13:25:12 +0000 (15:25 +0200)]
Require Memphis 0.2.1

8 years agoAdd launcher.js: A champlain javascript demo
Simon Wenner [Fri, 26 Feb 2010 22:40:09 +0000 (23:40 +0100)]
Add launcher.js: A champlain javascript demo

luncher.js implements the same application as its c equivalent, but
uses the javascript bindings provided by gobject-introspection.
The demo has no implementation of the marker layer and printing the
coordinates of a mouse click does currently not work.

8 years agolauncher: remove redundant semicolon
Simon Wenner [Fri, 26 Feb 2010 22:28:34 +0000 (23:28 +0100)]
launcher: remove redundant semicolon

8 years agoBugfix: GtkChamplain-0.5.gir has to depend on Champlain-0.5 and not 0.4
Simon Wenner [Fri, 26 Feb 2010 22:26:37 +0000 (23:26 +0100)]
Bugfix: GtkChamplain-0.5.gir has to depend on Champlain-0.5 and not 0.4

8 years agoupdate m4/gtk-doc.m4
Simon Wenner [Thu, 25 Feb 2010 16:40:05 +0000 (17:40 +0100)]
update m4/gtk-doc.m4

8 years agoFix a typo in a comment
Simon Wenner [Thu, 25 Feb 2010 16:38:01 +0000 (17:38 +0100)]
Fix a typo in a comment

8 years agoMigrate to libmemphis version 0.2
Simon Wenner [Thu, 25 Feb 2010 16:31:20 +0000 (17:31 +0100)]
Migrate to libmemphis version 0.2

Version 0.2 features proper io error handling and introspection support.

8 years agoUnref GdkPixbufLoader
Jiří Techet [Sat, 27 Mar 2010 13:56:23 +0000 (14:56 +0100)]
Unref GdkPixbufLoader

GdkPixbufLoader wasn't unreffed when the tile was successfully loaded.
This caused a _huge_ memory leak.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoRemove tile ref/unref in ChamplainTile
Jiří Techet [Sat, 27 Mar 2010 13:53:37 +0000 (14:53 +0100)]
Remove tile ref/unref in ChamplainTile

Under Lucid, there are some warnings in the console about non-existent
object being unreffed. This patch fixes that. It should be safe not
to ref the tile because when fade_in is completed, the content actor
is guaranteed to exist and because it exists, its parent exists as
well.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoOptimize ChamplainView state update
Jiří Techet [Mon, 22 Mar 2010 21:48:54 +0000 (22:48 +0100)]
Optimize ChamplainView state update

When profiling with Oprofile and gprof2dot, view_update_state() consumed
nearly one half of CPU cycles (CPU used by libchamplain only without
any other libraries). This was because we were cycling through all
the tiles to determine the state and the state was updated for every
tile, which lead to quadratic complexity. This patch fixes this by
updating a counter of tiles that are being filled.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoMove variable declarations to the top of view_load_visible_tiles()
Jiří Techet [Sun, 21 Mar 2010 03:26:27 +0000 (04:26 +0100)]
Move variable declarations to the top of view_load_visible_tiles()

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix freeing const string
Jiří Techet [Sun, 21 Mar 2010 03:12:06 +0000 (04:12 +0100)]
Fix freeing const string

g_get_tmp_dir () returns const string that must not be deallocated.
Copy it first.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoDisplay polygons again
Jiří Techet [Sat, 20 Mar 2010 17:05:14 +0000 (18:05 +0100)]
Display polygons again

Still mystery what the original code was good for - commenting out
as it causes that the polygon is not displayed.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoGet rid of public privates for good
Jiří Techet [Sat, 20 Mar 2010 16:27:18 +0000 (17:27 +0100)]
Get rid of public privates for good

Gets rid of shared private in ChamplainBaseMarker and corrects variable
naming conventions in CHamplainBaseMarker.

Signed-off-by: Jiří Techet <techet@gmail.com>