Commit Graph

206 Commits

Author SHA1 Message Date
Emmanuel Briot
daaa305f5c (Register_Module): Do not added documentation for the GPS module, since this
is done in shell_commands.xml now.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92509 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-30 09:59:54 +00:00
Emmanuel Briot
ef470b3785 Add support for overriding "+", "-", "<" and ">" when creating a new
class. Used for EditorLocation


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92460 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-24 15:16:16 +00:00
Emmanuel Briot
ad79b4f00d (Set_Data, Get_Data, Get_Instance): New subprograms since it is now the
responsability of each language to associate a widget and a class instance
 to avoid memory leaks and storage_errors
Fixes memory leaks where some python objects were never freed, in particular
 class instances


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92420 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-22 10:32:05 +00:00
Emmanuel Briot
37bcaabe7d Change the way DEBUG works (so that Print_Refcount can always be used in GPS
to debug the reference counting for scripts)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92419 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-22 10:31:03 +00:00
Emmanuel Briot
598060b6ae (Get_Refcount): New subprogram
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91968 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-22 15:05:30 +00:00
Arnaud Charlet
ba81502a4d (Load_Python_Startup_Files): Take into account plug-ins directory.
Part of E302-005,E302-007.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91726 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-11 14:15:45 +00:00
Emmanuel Briot
d60e95115d Make sure the error when "pygtk" is not found doesn't appear on the terminal
when GPS is launched


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91653 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-07 10:06:52 +00:00
Emmanuel Briot
fa516dfced Add flags for pkg-config since gtk.h is now needed to compile python_support.c
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91649 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-07 09:08:57 +00:00
Emmanuel Briot
f100c0cc3b Add needed pragma Unreferenced
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91646 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-07 08:37:51 +00:00
Emmanuel Briot
a49e86b3fb (GPS.MDI.add): New function, registered only when pygtk is found, so that
users can integrate pygtk widgets inside the MDI


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91644 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-07 08:18:56 +00:00
Emmanuel Briot
7a4bf7f1cc (ada_widget_from_pyobject): New function, for better integration with pygtk
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91643 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-07 08:18:29 +00:00
Emmanuel Briot
2cf3e2d837 (Run_Command): Recognize python's error message when the user types
if 1:
   pass
 else:  <return>
We used to stop with an exception. Reported in D902-011


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91625 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-06 13:31:42 +00:00
Emmanuel Briot
7a9afc72cb (Add_Class_Method, Add_Static_Method): Set the documentation to the fully
qualified name of the method so that we can get the documentation properly
 from the python shell (otherwise we do not have access to the name of the
 class.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91617 936e1b1b-40f2-da11-902a-00137254ae57
2005-04-06 12:48:14 +00:00
Arnaud Charlet
f8864900a7 Replace unnecessary use of 'Unrestricted_Access by 'Unchecked_Access.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91212 936e1b1b-40f2-da11-902a-00137254ae57
2005-03-18 13:55:55 +00:00
Arnaud Charlet
bd7d8184e0 (Handler_Data): Move variable length part at the end of the record,
so that GNAT can generate more efficient code.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91115 936e1b1b-40f2-da11-902a-00137254ae57
2005-03-16 10:04:53 +00:00
Emmanuel Briot
117f473055 (Set_Return_Object): Accept cases where the instance is null (and return
Py_None instead). Part of E304-002


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@91020 936e1b1b-40f2-da11-902a-00137254ae57
2005-03-08 10:24:29 +00:00
Arnaud Charlet
eea1eeca4d Rename Glide_Intl -> GPS.Intl
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90843 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-25 17:30:02 +00:00
Arnaud Charlet
6686d57918 Rename Glide_Window -> GPS_Window
Rename Glide_Kernel -> GPS.Kernel


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90835 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-25 16:12:38 +00:00
Nicolas Setton
9eed7710ec Add with of Glide_Kernel.MDI.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90609 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-17 17:41:21 +00:00
Emmanuel Briot
b22c9b0c24 (Save_Desktop): Adapted to new API in Gtkada.MDI. Fixes a bug where the
Messages window could sometimes be saved as the Python console in the
 desktop


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90540 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-16 10:53:50 +00:00
Emmanuel Briot
1222bd45c3 (Create_Python_Console): Properly initializes the console, so that output
of commands typed in the console is properly displayed. Fixes regression


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90449 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-11 21:59:25 +00:00
Emmanuel Briot
ac3cf7e3bb (Run_Command): Make sure to restore the default output in case of
exceptions


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90448 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-11 21:58:30 +00:00
Emmanuel Briot
cb78e0eb00 (Register_Module): Remove the python console from the default desktop
(E209-007)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90394 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-10 15:05:52 +00:00
Emmanuel Briot
6e9f6d7453 Adapted to new API for Add_Default_Desktop_Item
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90256 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-03 13:06:32 +00:00
Emmanuel Briot
9a5e511663 (Run_Command): Do not fail if there is no python console in GPS
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90223 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-02 11:51:46 +00:00