Murray Cumming
30fdc1a799
Docs: Changed can not to cannot.
2011-03-24 09:33:55 +01:00
Emmanuele Bassi
08f0a31289
Revert "Remove all uses of G_CONST_RETURN"
...
This reverts commit 36741245cca56e979fe85e3de676fb3912058f2c.
The removal has not been discussed, except on Bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=644611
2011-03-15 09:03:28 +00:00
Emmanuele Bassi
0c1acc7e74
Revert "Deprecate G_CONST_RETURN"
...
This reverts commit a7fc7909dad9b88e8b2d1c6cde801e8888bdfc36.
The deprecations was not discussed except on Bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=644611
2011-03-15 09:02:08 +00:00
Ryan Lortie
d679a7659f
GVariant parser: fix tuple type checking
...
Robert Ancell discovered that the GVariant parser messes up pretty badly
when the type of a tuple is specified and the tuple in the text being
parsed has a different number of elements (but otherwise matching child
types).
Check that we have the expected number of elements.
Closes #644786 .
2011-03-15 01:32:22 -04:00
Ryan Lortie
a7fc7909da
Deprecate G_CONST_RETURN
2011-03-15 01:32:22 -04:00
Ryan Lortie
36741245cc
Remove all uses of G_CONST_RETURN
...
Just use 'const'.
2011-03-15 01:32:22 -04:00
Owen W. Taylor
789b341eff
Correct internal definition of C_()
...
* Since the GLib translations are lazily initialized, we need an
internal wrapper for g_dpgettext() that does the initialization
in the same way as glib_gettext()
* We need to use the glib domain defined by GETTEXT_PACKAGE
rather than than the application's domain.
https://bugzilla.gnome.org/show_bug.cgi?id=644607
2011-03-12 21:10:06 -05:00
Emilio Pozuelo Monfort
89ca0f7296
Document g_timeout_add_seconds first call latency
...
And fix /timeout/rounding to not fail if the first call
happens after 2 seconds.
https://bugzilla.gnome.org/show_bug.cgi?id=644552
2011-03-12 15:51:44 +00:00
Tor Lillqvist
9505ad05ee
Use g_usleep() for portability, bug #644465
2011-03-11 10:19:42 +02:00
Matthias Clasen
a6615ba859
Fix cleanup in g_markup_collect
...
Patch by Matt Barnes,
https://bugzilla.gnome.org/show_bug.cgi?id=644428
2011-03-10 23:27:49 -05:00
Matthias Clasen
949b7c3428
Add a testcase for g_markup_collect cleanup
...
Taken from https://bugzilla.gnome.org/show_bug.cgi?id=644428 .
The test is currently failing.
2011-03-10 23:25:22 -05:00
Martin Nordholts
37858f7f5e
Check availability of linux/magic.h
...
Check availability of linux/magic.h. It isn't available in Linux
versions before 2.6.19.
2011-03-08 19:13:57 +01:00
Matthias Clasen
121ce56fe1
Go back to the old logic in set_expiration
...
It was more complicated, but also more correct...
Also add a test to ensure that our rounding works as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=643795
2011-03-06 22:38:17 -05:00
Ryan Lortie
d2a2fe96a3
GVariant docs cleanups
...
Fix some gtk-doc warnings
2011-03-04 00:57:51 -05:00
Ryan Lortie
be04e514c0
GVariant: add G_VARIANT_TYPE_VARDICT for a{sv}
2011-03-04 00:45:14 -05:00
Matthias Clasen
c430ad0b1b
Add some tests for g_hash_table_lookup_extended
2011-02-25 10:41:29 -05:00
Matthias Clasen
d2d756439f
GHashTable: Clarify g_hash_table_lookup_extended docs
...
Passing NULL as a key is only ok if your hash and equal functions
can deal with it.
https://bugzilla.gnome.org/show_bug.cgi?id=642944
2011-02-25 10:40:39 -05:00
Matthias Clasen
52ef73ac8c
GOptionContext: Warn about invalid arg/flag combinations
...
This was proposed by Kjell Ahlstedt in bug 642825.
Also adding a few tests for this new behaviour.
2011-02-25 10:10:37 -05:00
Matthias Clasen
ee9e38ef68
Treat optional arguments the same for long and short options
...
This was noticed in bug 642825 and the change was proposed
by Kjell Ahlstedt.
2011-02-25 08:45:28 -05:00
Chun-wei Fan
701ac3cb3d
Fix the VS2010 project generation for GLib
...
The scripts accently pick up gcc-only source files... this fixes that.
2011-02-24 12:38:51 +08:00
Andreas Rottmann
fdfb09a793
Bug 638185 - GIOCondition should be annotated as "flags"
...
Add a gtk-doc annotation to GIOCondition marking it as a flags type.
2011-02-22 15:12:30 +01:00
Chun-wei Fan
7b118b0c41
Visual C++ 2010 Project Files: autotools files
...
These are the updates to the autotools files to
ensure the expansion of the GIO, GLib and GObject
project files (*.vcxproj, *.vcxproj.filters) and to
enable the distribution of the VS2010 project files
The actual VS2010 project files will follow shortly
2011-02-22 19:58:18 +08:00
Tor Lillqvist
1158f9c171
Export _glib_get_locale_dir() as it is now used in gio, too
2011-02-20 01:30:51 +02:00
Matthias Clasen
4cda703d8e
Use glibc qsort_r() for g_qsort_with_data()
...
No point in using an outdated copy that claims to
'work best on a Sun 4/260' when we can just wrap qsort_r...
2011-02-16 01:28:27 -05:00
Damien Lespiau
59cbb3a8a3
gtimezone: Rename shadowing variable 'time' to 'time_'
2011-02-15 21:55:38 -05:00
Matthias Clasen
b21b3a01c7
Fix bug base in array-test
2011-02-15 00:03:19 -05:00
Matthias Clasen
a46885242b
Add a testcase for bug 640489
2011-02-15 00:03:19 -05:00
Ryan Lortie
c2fbef4125
Bug 642052 - g_timeout_add(_seconds) overflow
...
Fix integer overflow error.
2011-02-14 23:23:33 -05:00
Ryan Lortie
10154d21f0
Bug 642052: add currently-broken test case
...
The test case fails for now. It will be fixed by the next commit.
2011-02-14 23:23:33 -05:00
Matthias Clasen
309f5f978b
Improve test coverage
...
Various test additions, mainly in GObject
2011-02-13 23:49:19 -05:00
Matthias Clasen
147139d968
Use g_assert_no_error
...
The option-context test had its own version.
2011-02-13 23:49:18 -05:00
Benjamin Otte
562f29afdc
doc: Fix typo in previous commit
...
Yuck. I blame it on the weekend.
2011-02-12 18:05:54 +01:00
Benjamin Otte
17eea8fa60
docs: Fix return value for g_datetime_compare()
...
Previous code confused dt1 and dt2. The new formulation is stolen from
man strcmp() and g_strcmp0().
2011-02-12 17:56:34 +01:00
Ryan Lortie
ea4e3ea1cb
GVariant: doc the format of g_variant_parse/print
2011-02-11 13:53:10 -05:00
Ryan Lortie
b1d02f9323
GVariant: support NULL for empty arrays in varargs
...
g_variant_new("as", NULL); now gives an empty array of strings, for
example.
This was documented as working already, but was never actually
implemented (due to the fact that it muddies the water when considering
maybe types). It's being implemented now because its convenience to
programmers exceeds any damage done to the conceptual purity of the API.
2011-02-11 10:14:29 -05:00
Matthias Clasen
78dcafc5cb
Fix some parameter mismatches in GVariant docs
2011-02-08 10:04:36 -05:00
Matthias Clasen
4368a07e02
Avoid more compiler warnings
2011-02-08 07:41:49 -05:00
Matthias Clasen
8d572f5d22
g_date_time_format: drop an unused variable
2011-02-08 07:35:54 -05:00
Javier Jardón
a0554a9f76
docs: Document Since properly, 2.26 -> 2.28
2011-02-08 02:27:44 +00:00
Johan Dahlin
fdaaa22b58
Correct gtk-doc SECTION: syntax
...
g-ir-scanner does not allow a space between the : and the
section name.
2011-02-01 16:18:02 -02:00
Ignacio Casal Quinteiro
401a4233e4
Check that error exists before trying to set it. Fixes bug #640975 .
2011-01-31 13:34:26 +01:00
Dan Winship
3c59c38404
Fix g_source_add_child_source docs
...
https://bugzilla.gnome.org/show_bug.cgi?id=640823
2011-01-28 10:18:42 -05:00
Ryan Lortie
d4209c1c41
GVariant: clear memory before releasing it
...
Bug #640807 makes a reasonable case for why it's better to have your
program crash outright in the case of memory errors. With this
modification, GVariant is far more likely to do that in the case that a
GVariant pointer is used shortly after being freed.
2011-01-28 08:25:05 -05:00
Tobias Mueller
8602a3a682
Fixed format string issue in a test, fixes bug 640725
2011-01-27 23:10:02 -05:00
Matthias Clasen
069daa69f6
Add testcase for bug 640695
2011-01-27 23:07:53 -05:00
Benjamin Gilbert
440e6f4a61
Ensure g_key_file_load_from_file() strips a \r on a 4 KB boundary
...
When g_key_file_parse_data() encountered \n, it was checking the previous
character in the current input buffer for a \r to erase, rather than the
previous character in the parse buffer. If g_key_file_load_from_file()
was given a file with a \r\n sequence straddling a 4 KB boundary, the \n
would be the first character in the input buffer, so the \r would not be
properly stripped.
Bug #640695 .
Found-by: Jan Harkes <jaharkes@cs.cmu.edu>
2011-01-27 23:06:15 -05:00
Matthias Clasen
cc5578fbd7
Make load_user_special_dirs() resistant to nonexistent dirs
2011-01-27 21:57:57 -05:00
Matthias Clasen
fb2809ec99
Forgotten files
2011-01-22 00:01:54 -05:00
Matthias Clasen
3f059a6a12
Remove a test that seems to fail depending on time of day
2011-01-21 23:41:12 -05:00
Matthias Clasen
c03dc6bf7d
Update the included copy of PCRE
...
Update PCRE to version 8.12.
At the same time, also add Unicode 6.0 script support.
2011-01-21 23:10:01 -05:00