Commit Graph

212 Commits

Author SHA1 Message Date
Gergely Polonkai e16c4eca70 Code beautification 2014-08-13 00:55:31 +02:00
Gergely Polonkai c10881fff1 Sending "notify" signals upon property change 2014-08-13 00:55:22 +02:00
Gergely Polonkai aae1f06ed7 Setting Gregorian timezone now invalidates Gregorian date
* It calculates Julian Day beforehands, so a valid date remains in
  timestamp
* gswe_timestamp_set_gregorian_timezone() doesn’t emit the "changed"
  signal any more
2014-08-13 00:54:15 +02:00
Gergely Polonkai 8bf5a49c4b Store property GParamSpecs in an array for notify emission 2014-08-13 00:51:26 +02:00
Gergely Polonkai e621a2eda2 Add element-type to gswe_all_house_systems documentation 2014-07-16 22:55:14 +02:00
Gergely Polonkai 600712c901 Add gswe_all_house_systems() function
This is required for Astrognome to configure house systems in the charts.
See gergelypolonkai/astrognome#36
2014-07-16 22:47:59 +02:00
Gergely Polonkai dca2071c88 Move GsweError and GSWE_ERROR documentation to .c file
This is to hide documentation details from installed .h files
2014-07-16 22:38:47 +02:00
Gergely Polonkai 1225c5c8ed Fix comment in gswe_init_with_dir() 2014-07-08 13:24:07 +02:00
Gergely Polonkai 0caebd4f94 Revert "Remove gswe_init() call from GsweTimestamp initializers"
This reverts commit 078ff3370d.

It turns out that we actually need to call gswe_init() (or at least
g_type_init()) for GObjects to work.
2014-07-08 13:16:59 +02:00
Gergely Polonkai d5bea25e4d Add version information to some new functions 2014-07-08 11:02:25 +02:00
Gergely Polonkai 95e89a4c25 Code beautification 2014-07-08 10:43:54 +02:00
Gergely Polonkai 078ff3370d Remove gswe_init() call from GsweTimestamp initializers
That call is unnecessary for time related functions.
2014-07-06 00:48:20 +02:00
Gergely Polonkai 66c8c3371c Code beautifying in gswe-timestamp.c
Wrap really long lines
2014-07-06 00:47:37 +02:00
Gergely Polonkai 8adfd0b966 Fix error that makes class init fail on machines with UTC as time zone
For a more universal solution, the default values for a GsweTimestamp
are set according to the current UTC time, with time zone also set
to UTC.
2014-07-06 00:44:43 +02:00
Gergely Polonkai 8dd6eedb88 Remove debugging line in gswe_init_with_dir() 2014-07-05 23:14:08 +02:00
Gergely Polonkai 89baa44005 Add documentation for GSWE_PLANET_LILITH 2014-07-05 23:04:43 +02:00
Gergely Polonkai a50a967ad3 Add gswe_find_*_info() functions to find registered Gswe*Info objects 2014-07-05 22:58:54 +02:00
Gergely Polonkai 75a9318629 Add version information related functions 2014-07-05 22:57:34 +02:00
Gergely Polonkai 95face8294 Add function gswe_timestamp_get_sidereal_time() 2014-06-11 15:59:55 +02:00
Gergely Polonkai 784987a2b6 Remove deprecated function calls from own code 2014-06-11 15:41:32 +02:00
Gergely Polonkai 07a351c373 Add Universal Time calculation functions
This is required for sidereal time calculations later. get/set Julian
day functions have been renamed to have an _et suffix. Meanwhile, the
old gswe_timestamp_get_julian_day() and gswe_timestamp_set_julian_day()
functions have been deprecated.
2014-06-11 15:41:32 +02:00
Gergely Polonkai 55621bc25d Add asteroid Hygiea 2014-05-29 08:14:00 +02:00
Gergely Polonkai c9a0944504 Comment block fixup for GswePlanet
Add Orcus and Asbolus
Reorder comments so it lines up with the actual values
2014-05-29 08:07:45 +02:00
Gergely Polonkai d3e4443922 Add GswePlanet planet offsets for later use 2014-05-28 16:39:43 +02:00
Gergely Polonkai 6a69271007 Add asteroids Orcus and Asbolus 2014-05-28 16:39:43 +02:00
Gergely Polonkai b6071a4e46 Reordered planets in GswePlanet
This is to bring some consistency in the API
2014-05-28 16:39:43 +02:00
Gergely Polonkai 21298fb219 Add alias to GSWE_PLANET_MOON_APOGEE as GSWE_PLANET_LILITH 2014-05-24 09:57:51 +02:00
Gergely Polonkai 243eac9de8 Add asteroid Circe as GSWE_PLANET_CIRCE 2014-05-23 21:42:49 +02:00
Gergely Polonkai de5ac1b63b Add dwarf planet Dejanira 2014-05-18 20:38:29 +02:00
Gergely Polonkai 97df73c64f Add dwarf planets Sedna and Eris 2014-05-18 17:19:25 +02:00
Gergely Polonkai 2d75226310 Reindent some planet table creating lines 2014-05-18 17:19:04 +02:00
Gergely Polonkai e3a6e25bda Add gswe_moment_get_antiscion_by_planets() function 2014-05-07 10:00:23 +02:00
Gergely Polonkai 6566e5356a Add gswe_moment_get_aspect_by_planets() function 2014-05-07 10:00:23 +02:00
Gergely Polonkai 12c08c865d Add Vala API generating code to build tools configuration 2014-05-07 08:36:24 +02:00
Gergely Polonkai 2116c8103a Add NULL protection to gswe_moment_get_planet()'s find part 2014-04-05 22:38:43 +02:00
Gergely Polonkai 8cd8cd67e2 Add NULL protection to GswePlanetData functions 2014-04-05 22:34:06 +02:00
Gergely Polonkai f2bc764f87 Add new asteroids to the planet list
* Pholus
* Nessus
* Chariklo

Fix #10
2014-04-01 22:23:53 +02:00
Gergely Polonkai b394e31f0a Add function gswe_init_with_dir()
This is to be able to specify the SWE data files' path
2014-04-01 08:15:10 +02:00
Gergely Polonkai cbf2201249 Free all objects in gswe_moment_finalize() 2014-03-29 14:55:29 +01:00
Gergely Polonkai 0326770d73 Remove unneeded gswe_planet_data_ref() call 2014-03-29 14:44:17 +01:00
Gergely Polonkai a320abc71e Remove unnecessary gswe_*_ref() calls
This is to revert part of 41a80ca365,
which was kind of an overhead.
2014-03-19 20:32:46 +01:00
Gergely Polonkai 0fb888a940 Make gswe_planet_info_free() free its name only if it is set 2014-03-16 09:52:18 +01:00
Gergely Polonkai b689d3153d Add comment to find_aspect() 2014-03-16 09:46:09 +01:00
Gergely Polonkai ddf4732dc9 Add comment to find_antiscion() 2014-03-16 09:35:25 +01:00
Gergely Polonkai fd24246bae Reduce local variable count in planet_add() 2014-03-16 09:20:10 +01:00
Gergely Polonkai 41a80ca365 Make gswe_antiscion_axis_info_free() to unref its start_sign
This is to fix a bug that makes the library crash when the timestamp
or the chart changes.
2014-03-15 18:38:27 +01:00
Gergely Polonkai e23c789ff0 Change GList->next calls to g_list_next(GList) 2014-03-15 11:40:52 +01:00
Gergely Polonkai 2a48f402b8 Fix a typo 2014-03-09 22:34:54 +01:00
Gergely Polonkai e8819f9a47 Create glforeach convenience macro 2013-10-09 00:06:08 +02:00
Gergely Polonkai 551ea4cee0 Add missing documentation
gswe_antiscion_data_new_with_planets() and gswe_antiscion_data_calculate()
were not documented, nor exposed to the public API as they should be.
2013-10-09 00:05:38 +02:00