403 Commits

Author SHA1 Message Date
Nicolas Setton
ca51a73ba2 Make variable declarations constant where reported by the compiler.
For G522-010.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101523 936e1b1b-40f2-da11-902a-00137254ae57
2007-05-22 10:29:12 +00:00
Albert Lee
7e3d12bedd fix casing when using chars_ptr
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101433 936e1b1b-40f2-da11-902a-00137254ae57
2007-05-01 18:53:19 +00:00
Pascal Obry
3384a4aa36 Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101396 936e1b1b-40f2-da11-902a-00137254ae57
2007-04-25 08:10:34 +00:00
Pascal Obry
59f420652f Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101382 936e1b1b-40f2-da11-902a-00137254ae57
2007-04-23 21:44:35 +00:00
Pascal Obry
28c2b1c33a Everywhere a signal is used (Connect, Emit_By_Name...) we now have
Signal_Name object used.
Note that some missing signals have been added when needed.
For FC29-005.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101332 936e1b1b-40f2-da11-902a-00137254ae57
2007-04-19 19:49:21 +00:00
Arnaud Charlet
96f8eaf9ed Fix build of GPS without python support.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101028 936e1b1b-40f2-da11-902a-00137254ae57
2007-03-21 16:40:50 +00:00
Emmanuel Briot
5bf9622196 (Run_Command): Do not take a second grab if there is already one, since this
is in general useless, and might in fact cancel a menu associated with a GPS
 action filter (G305-005)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100902 936e1b1b-40f2-da11-902a-00137254ae57
2007-03-06 17:32:51 +00:00
Emmanuel Briot
aa9a614b6c (Print_Refcount): Minor change when the python object is already destroyed
(Get_CI): Fix handling when the kernel has already been destroyed (these
 show up as CE in the automatic testsuite)
(On_PyObject_Data_Destroy): Do not decref the instance, since this is
 already done automatically through controlled types. Part of G228-005


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100888 936e1b1b-40f2-da11-902a-00137254ae57
2007-03-06 12:58:37 +00:00
Emmanuel Briot
42b505067a Remove obsolete comment
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100618 936e1b1b-40f2-da11-902a-00137254ae57
2007-02-13 17:21:37 +00:00
Emmanuel Briot
db0e89b9ba (Nth_Arg): raise an exception when the class of the object cannot be
found (for instance because it is not an instance). Prevents calling C
 code with an invalid class argument, and some valgrind errors


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100617 936e1b1b-40f2-da11-902a-00137254ae57
2007-02-13 17:21:04 +00:00
Florian Villoing
f867d1deda (ada_pyclass_is_subclass): Protect against null pointers.
Part of G126-005.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100527 936e1b1b-40f2-da11-902a-00137254ae57
2007-01-26 11:48:41 +00:00
Pascal Obry
8cd3e0639f (ada_PyEval_EvalCodeEx): Fix co parameter type to avoid a
compiler warning.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100373 936e1b1b-40f2-da11-902a-00137254ae57
2006-12-29 09:29:31 +00:00
Pascal Obry
c1fd07cf92 (Load_Python_Startup_Files): Split in 2 versions (system, user).
(Load_System_Python_Startup_Files): Load system plug-ins.
(Load_User_Python_Startup_Files): Load user's plug-ins.
--
This change the library load order:
 1. load system wide XML plug-ins
 2. load system wide Python plug-ins
 3. load user's XML plug-ins
 4. load user's Python plug-ins
This ensure that user's plug-ins have full access to the GPS plug-ins.
Work for FB26-004.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100110 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-27 20:33:24 +00:00
Pascal Obry
44ce762395 (Load_Dir): Move to top level as it is now shared.
(Load_Python_Startup_Files): Split in 2 versions (system, user).
(Load_System_Python_Startup_Files): Load system plug-ins.
(Load_User_Python_Startup_Files): Load user's plug-ins.
--
This change the library load order:
 1. load system wide XML plug-ins
 2. load system wide Python plug-ins
 3. load user's XML plug-ins
 4. load user's Python plug-ins
This ensure that user's plug-ins have full access to the GPS plug-ins.
Work for FB26-004.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100109 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-27 20:33:22 +00:00
Pascal Obry
29ec79e704 Fix wrong casing introduced in previous check-in.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@99977 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-22 15:11:46 +00:00
Pascal Obry
6def3c2a96 Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@99974 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-22 14:53:37 +00:00
Arnaud Charlet
8c3d497346 Remove Basic_Types.String_Access.
Favor GNAT.Strings.String_Access over Basic_Types/OS_Lib.
Part of F822-002.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@99921 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-16 17:19:21 +00:00
Emmanuel Briot
e5db998645 Enhance previous checkin, add assert statement so that we do not get a
compiler warning


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98589 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-08 08:11:19 +00:00
Arnaud Charlet
d4c6633e0b Remove unused pragma Warnings Off.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98575 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-07 14:54:52 +00:00
Emmanuel Briot
b136f19afc (Load_Python_Startup_Files): Make sure we first load the files in
GPS_CUSTOM_PATH before the files in ~/.gps/plug-ins, since this is as
 documented


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98546 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-04 15:17:07 +00:00
Florian Villoing
a5047685ed (Register_Module): Slighly reorganize the code so that GPS is able to handle
error messages before importing the gtk module. This avoids a storage error
 with pygtk 1.8.6 compiled locally.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98386 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-28 15:44:19 +00:00
Emmanuel Briot
97d209c9f7 (Load_Python_Startup_Files): Execute initialization commands through the
task manager, so that the user can also use the <external> tag if he wants.
 Part of F719-012


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98351 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-27 15:22:03 +00:00
Emmanuel Briot
cf5fb21e1e Avoid hard-coding the name of startup directories, they are now shared in
the kernel.
(Load_Python_Startup_Files): Load files based on the contents of startup.xml,
 as per F719-012
 No longer load $prefix/share/gps/python/autoexec.py and ~/.gps/python_startup,
 as per the same TN
(Python_Module.Current_File): now a Virtual_File, slightly more convenient
 to use


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98220 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-25 15:19:54 +00:00
Emmanuel Briot
36289ca99f ("GPS.GUI.pywidget"): Avoid Storage_Error when the widget has been destroyed
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98156 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-24 09:20:07 +00:00
Arnaud Charlet
660197c179 Fix formatting.
Separate implementation of pygtk support, to make it easier to read and
 also to detect when a stub is missing.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98044 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-19 09:45:56 +00:00