Javier Jardón
010913c8ab
docs: Update the URL of some documentation links
...
http://developer.gnome.org -> http://library.gnome.org
2010-11-14 02:09:05 +01:00
Ryan Lortie
48ca3add14
G_STATIC_ASSERT: clarify when use is valid
...
Clarify when the use of G_STATIC_ASSERT is valid and fix up an invalid
use of it in GDBus.
2010-11-11 21:49:21 -05:00
Ryan Lortie
9fbfac6abb
GPeriodic: remove repair functions
...
Replace it with a single repair signal that either fires or does not.
2010-11-08 18:22:18 -05:00
Ryan Lortie
1a1fc130ec
New function: g_clear_object()
...
By analogy to g_clear_error, takes a pass-by-reference GObject reference
and, if non-%NULL, unrefs it and sets it equal to %NULL.
Bug #620263 .
2010-11-08 18:21:51 -05:00
Ryan Lortie
ba9fccf71e
g_get_user_runtime_dir(): New function
...
Get the value of the XDG_RUNTIME_DIR environment variable.
2010-11-06 17:35:10 -04:00
Ryan Lortie
7fc6f8a159
Add g_variant_lookup() and tests
...
Convenience API for doing lookups in dictionaries where the key is a
string or object path.
2010-11-05 21:33:43 -04:00
Christian Persch
ba45e36932
Add g_simple_async_report_take_gerror_in_idle
...
... and use it where appropriate. Saves an extra GError copy.
Bug #633686 .
2010-11-03 14:38:08 +01:00
Ryan Lortie
63b87b2c26
Add simple dynamic scheduling to GPeriodic
...
GPeriodic will now try not to use more than 50% of the CPU for its own
purposes unless there are no other tasks attempting to run.
2010-11-03 00:16:16 -04:00
Ryan Lortie
1cf14de82f
docs: Recommend against using GTimeVal
2010-11-02 22:39:09 -04:00
Ryan Lortie
5dab4727ee
Add g_get_real_time() for wall-clock int64 micros
...
Similar in spirit to g_get_monotonic_time().
2010-11-02 22:39:09 -04:00
Ryan Lortie
92df8a1d77
Drop GTimeSpec type
2010-11-02 22:39:09 -04:00
Matthias Clasen
b49ae16461
Various documentation fixes
2010-10-31 22:41:00 -04:00
Ryan Lortie
7aa2e50262
GApplication: support environment passing
...
Add support for passing the full contents of the environment to the
primary instance (by storing it in the platform_data) when
G_APPLICATION_SEND_ENVIRONMENT is in the flags.
2010-10-28 22:50:00 -04:00
Ryan Lortie
29ce7385bb
Add g_get_environ(): portable access to 'environ'
...
Return a copy of 'environ' on platforms where that is possible, or do
something else on other platforms.
2010-10-28 22:20:56 -04:00
Ryan Lortie
7c184df292
Bug 158725 - free linked list with data
...
Add some helpers for freeing a linked list along with its elements by
providing a GDestroyNotify to call on each of them.
Add a test.
Based on a patch from Cosimo Cecchi.
2010-10-28 11:20:57 -04:00
Ryan Lortie
b7d8363fbe
Add g_source_get_time()
...
Cached version of g_get_monotonic_time() that does similar to what
g_source_get_current_time() does for g_get_current_time().
2010-10-27 09:22:12 -04:00
Ryan Lortie
ab548d240a
Add g_get_monotonic_time()
...
Gets the system monotonic time on systems that have it. Otherwise, call
g_get_current_time().
2010-10-27 09:22:12 -04:00
Ryan Lortie
ac82e74895
Add 'GTimeSpec' as 'struct timespec' equivalent
2010-10-27 09:22:12 -04:00
Ryan Lortie
dfb0577ef4
Bug 632169 - manual use of gsettings-data-convert
...
Add some words and example code to the documentation about why you might
want to manually invoke gsettings-data-convert and how you should go
about doing that.
2010-10-27 09:08:32 -04:00
Matthias Clasen
11a59404d5
More documentation fixups
2010-10-25 08:42:36 -04:00
Matthias Clasen
727c2a58c2
Add new gmain api to the docs
2010-10-25 08:30:28 -04:00
Ryan Lortie
5400b0b38c
GPeriodic: a periodic event clock
...
Add a new class, GPeriodic.
We hope to use this as a paint clock that can be shared by GTK and
Clutter. Many changes are still expected to the API.
2010-10-20 11:47:31 +02:00
Ryan Lortie
e33deea16c
GApplication: reduce GVariant abuse
...
Don't use GVariant* as the representation for the argument array.
2010-10-19 19:38:00 +02:00
Ryan Lortie
a327bc51fc
Cleanup and doc GApplicationCommandLine
2010-10-19 18:29:58 +02:00
Ryan Lortie
eac4c385f0
GIO reference doc cleanups (re: GApplication)
2010-10-19 16:56:18 +02:00
Ryan Lortie
15d87c2cc4
GObject: add g_signal_accumulator_first_wins
...
Deals with the case where we want exactly one signal handler to run.
2010-10-12 21:34:17 -04:00
Christian Dywan
53f398f52a
Mention g_object_run_dispose correctly in tutorial
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=630797
2010-10-08 15:25:31 +02:00
William Jon McCann
7bafb3be95
Remove g_desktop_app_info_lookup_get_type symbol from gio.types
...
It was removed in 9b262f1c5f
2010-10-07 13:51:21 -04:00
Ryan Lortie
e740c5b4cd
Update symbols and docs sections
2010-10-04 03:36:09 -04:00
Ryan Lortie
fff6814973
Bug 630077 - GDateTime week number support
...
Fully implement support for ISO 8601 week dates in GDateTime and
document that this is the case.
Add an exhaustive test case to ensure correctness.
2010-10-01 11:20:55 -04:00
Stefan Kost
919f64acab
build: fix out of srcdir build
...
The gtk-doc makefile rules do cd srcdir && cp $(HTML_IMAGES) target/ and this
breaks for "srcdir" != ".".
2010-09-23 23:38:05 +03:00
Stefan Kost
de432280a0
docs: shorten var name in example
...
We use 'pspec' instead of 'maman_param_spec' elsewhere too.
2010-09-19 22:06:10 +03:00
Stefan Kost
aa8c8df44f
docs: fix iface type naming
2010-09-19 22:03:40 +03:00
Stefan Kost
58e5b01fbc
docs: fix docbook validity
...
'type' must be inside of 'link'.
2010-09-19 21:50:31 +03:00
Stefan Kost
409f7db894
docs: cleanup constructor example
...
Remove unused var and chain-up the sane way we do elsewhere.
2010-09-19 21:37:19 +03:00
Stefan Kost
a6ad0fbec2
docs: use passive voice.
2010-09-19 21:33:52 +03:00
Ryan Lortie
dda9707377
release 2.27.0
2010-09-17 18:32:35 -04:00
Ryan Lortie
5109778e93
.gitignore some sgml
2010-09-17 13:20:17 -04:00
Ryan Lortie
6b0e31ce48
Clean-up/tweaking of GDateTime and GTimeZone
2010-09-17 11:40:10 -04:00
Emmanuele Bassi
67f1e52ce2
datetime: Rework time zone support in constructors
...
Timezone handling is complicated. Really complicated.
In order to simplify it a little bit, we need to expose the GTimeZone
structure.
First of all, we allow creating time zone information directly from the
offset and the DST state, and then pass it to the g_date_time_new_full()
constructor. We also need to clean up the mess that is UTC-vs.-localtime
for the other constructors.
We also allow creating a GTimeZone from the Olson zoneinfo database
names; a time zone created like this will be "floating": it will just
reference the zoneinfo file - which are mmap()'ed, kept in a cache and
refcounted. Once the GTimeZone has been associated with a GDateTime, it
will be "anchored" to it: the offset will be resolved, as well as the
DST state.
https://bugzilla.gnome.org/show_bug.cgi?id=50076
2010-09-17 11:40:10 -04:00
Ryan Lortie
2e78d07f86
Add g_data_input_stream_read_upto{,async,finish}
...
These functions are meant to replace the read_until() flavour, with the
following improvements:
- consistency between the synchronous and asynchronous versions as to
if the separator character is read (it never is).
- support for using a nul byte as a separator character by way of
addition of a length parameter which allows stop_chars to be treated
as a byte array rather than a nul-terminated string.
The read_until() functions are not yet formally deprecated, but a note
has been added to the documentation warning not to use them as they will
be in the future.
This is bug #584284 .
2010-09-13 13:14:25 -04:00
Emmanuele Bassi
9cd43d7a4c
gobject: Add install_properties()
...
Since we added g_object_notify_by_pspec(), an efficient way to install
and notify properties relies on storing the GParamSpec pointers inside
a static arrays, like we do for signal identifiers.
Instead of multiple calls to g_object_class_install_property(), we
should have a single function to take the static array of GParamSpecs
and iterate it.
https://bugzilla.gnome.org/show_bug.cgi?id=626919
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com >
2010-09-13 12:34:53 +01:00
David Zeuthen
c3371efcaa
Bug 624546 – Modification of GDBusMessage in filter function
...
Rework filter functions as per
https://bugzilla.gnome.org/show_bug.cgi?id=624546#c8
This commit breaks ABI. However, this ABI break affects only
applications using filter functions. The only known user of is dconf.
Signed-off-by: David Zeuthen <davidz@redhat.com >
2010-09-09 13:21:35 -04:00
David Zeuthen
3d8095588a
Fix tmpl files
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2010-09-09 12:00:39 -04:00
David Zeuthen
67a00658ea
GDBusMessage: Make it possible to lock and copy messages
...
Don't actually use this yet as that will require a couple of
modifications to the filter function signature. This is part of the
bug-fix for
https://bugzilla.gnome.org/show_bug.cgi?id=624546#c8
Signed-off-by: David Zeuthen <davidz@redhat.com >
2010-09-09 12:00:32 -04:00
Emmanuele Bassi
64300c0cc4
datetime: Add get_week_of_year()
...
https://bugzilla.gnome.org/show_bug.cgi?id=628029
Based on a patch by: Joseph Pingenot
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com >
2010-09-06 11:50:30 +01:00
Jon Nordby
fb15dde6c1
docs: Inline docs from tmpl/memory.smgl
2010-09-01 09:48:16 +02:00
Ryan Lortie
846b0b3466
GAction is now an interface
...
the new class GSimpleAction is the implementation half
2010-08-30 19:26:37 +02:00
Matthias Clasen
925b4231dc
Point out that g_type_init() is required
2010-08-25 22:09:07 -04:00
Emmanuele Bassi
d31c1c863a
docs: Fix up GDateTime for the GObject reference
2010-08-25 16:24:46 +01:00