Colin Walters
09aa6d3668
GRand: Check return value of fopen directly
...
This doesn't fix anything, it should just silence some static analysis
tools.
2012-07-14 16:33:15 -04:00
Colin Walters
fd8056b532
gspawn: Abort if we can't open /dev/null
...
This really "shouldn't happen", but if we have an assertion here, it
will help static analysis tools know we're not hitting undefined
state.
2012-07-14 16:33:15 -04:00
Colin Walters
2143e799f4
tests/unix: Ensure buffer is NUL terminated
2012-07-14 16:33:15 -04:00
Colin Walters
6fe87988d1
gsignal: Properly handle NULL nodes
2012-07-14 16:33:15 -04:00
Colin Walters
94201b9ba8
gresourcefile.c: Remove stray semicolon
2012-07-14 16:33:14 -04:00
Colin Walters
773f515220
gmenu: Remove stray semicolon in g_menu_clear_item()
2012-07-14 16:33:14 -04:00
Colin Walters
cbe331450f
tests: Add missing initializer for return value
2012-07-14 16:33:14 -04:00
Colin Walters
9f45f340ed
tests: Add missing va_end()
2012-07-14 16:33:13 -04:00
Colin Walters
e713de6780
gfileutils: Remove extra fclose()
...
This is a regression introduced by:
commit 6ac8e6108c
Author: Matthias Clasen <mclasen@redhat.com >
Date: Tue Jun 14 10:12:46 2011 -0400
Don't leak resources in error cases
2012-07-14 16:33:13 -04:00
Matthias Clasen
894cf92650
Install bash completion files in /usr/share/
...
The bash-completion code nowadays expects completion files to
be installed in /usr/share/bash-completion/completions, and
expects them to be named like the command they are completing
for.
https://bugzilla.gnome.org/show_bug.cgi?id=677782
2012-07-14 16:33:13 -04:00
Dan Winship
6a9668af93
gdbus: fix generated code to not warn under -Wfloat-equal
...
https://bugzilla.gnome.org/show_bug.cgi?id=678333
2012-07-14 16:33:12 -04:00
Martin Pitt
8f46e27c35
Fix g_utf8_validate() out argument transfer mode
...
The "end" argument is unusual in g_utf8_validate(): it's not a classic out
argument which gets allocated by the called function, but merely points into
one of its input arguments. Thus it is "transfer none".
https://bugzilla.gnome.org/show_bug.cgi?id=672889
2012-07-14 16:33:12 -04:00
Dan Winship
7934d64837
docs: fix an example
2012-07-14 16:33:12 -04:00
Matthias Clasen
f03dbdc365
GKeyFile: Deal better with blank lines
...
There is no need to store a has_trailing_blank_line boolean for
each group, we can just check this at the time we assemble the data.
This fixes a problem without roundtrips where we would sometimes
add an extra blank line between groups.
The testcase here is inspired by
https://bugzilla.gnome.org/show_bug.cgi?id=677817
2012-07-14 16:33:12 -04:00
Matthias Clasen
747e651697
GWakeup: Avoid extraneous wakeups
...
We were checking the wrong number here, and waking up unnecessarily.
https://bugzilla.gnome.org/show_bug.cgi?id=678052
2012-07-14 16:33:11 -04:00
Paolo Borelli
45ff6099c6
Improve g_find_program_in_path documentation
...
Document that g_find_program_in_path returns a newly-allocated string
2012-07-14 16:33:11 -04:00
Benjamin Otte
d98eed087d
glib-compile-resources: Forward errors from spawned processes
...
We just grab stderr from gdk-pixbuf-to-csource and xmllint and include
it in the error message. It's the best we can do.
2012-07-14 16:33:11 -04:00
Matthias Clasen
0a22710d67
Correct the docs for g_time_zone_adjust_time
...
March 13, 2010 is very ordinary.
March 14, 2010 is the special day.
2012-07-14 15:23:03 -04:00
Matthias Clasen
6541256859
Fix a typo
...
It is 'entries', not 'entires'.
2012-07-14 15:22:46 -04:00
Daniel Macks
c6a5b5d719
configure: Require libelf 0.8.12
...
Older versions don't have the required API.
(Commit message written by Colin Walters <walters@verbum.org >)
https://bugzilla.gnome.org/show_bug.cgi?id=673253
2012-07-14 15:21:16 -04:00
Martin Pitt
c149b7ecb0
g_dbus_gvariant_to_gvalue(): Add missing out annotation
2012-07-14 15:20:54 -04:00
Marc-Antoine Perennou
57214e812d
glib: fix g_reload_user_special_dirs_cache
...
We handle a special case for G_USER_DIRECTORY_DESKTOP
when we init the values but drop it when we reload them.
Fix this by preferring old values to NULL
https://bugzilla.gnome.org/show_bug.cgi?id=676594
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com >
2012-07-14 15:19:46 -04:00
Christian Persch
d43c89c286
build: Add missing AM_V_GEN to silence the build
2012-07-14 15:19:22 -04:00
Guillaume Desmottes
8dbf5a86e1
Link to gvariant-format-strings-pointers in getter API
...
https://bugzilla.gnome.org/show_bug.cgi?id=674777
2012-07-14 15:18:59 -04:00
Colin Walters
9851202b15
gappinfo: Fix uninitialized-variable gcc warning
2012-07-14 15:17:49 -04:00
Colin Walters
9b9e99e6c8
Annotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32
...
https://bugzilla.gnome.org/show_bug.cgi?id=676816
2012-07-14 15:17:39 -04:00
Colin Walters
c1faabde81
Annotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30
...
I didn't do this comprehensively, since there's a lot of it, mainly
due to the GDBus object manager stuff, but anyone trying to use
that would fail fast due to lack of the gdbus code generator.
My main goal was to get API additions to existing classes like
g_data_input_stream_read_line_utf8(), as well as the lower level new
API like glib-unix.h.
https://bugzilla.gnome.org/show_bug.cgi?id=676816
2012-07-14 15:17:33 -04:00
Christian Persch
98ae46c618
application: Save a few bytes in the library
...
There's really no need to put useless whitespace into the .so.
2012-07-14 15:17:10 -04:00
Marc-Antoine Perennou
8906b1f66b
glib: fix build
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com >
2012-07-14 15:16:58 -04:00
Christian Persch
47fdbf8948
environ: Allow NULL envp
...
https://bugzilla.gnome.org/show_bug.cgi?id=676397
2012-07-14 15:16:58 -04:00
Dan Winship
3d35cbfae9
g_utf8_validate: @str shouldn't end up annotated as utf8
...
In order for this function to have any point, it has to be possible to
pass non-UTF-8 data to it, so annotate @str as being array-of-guint8
instead of utf8.
https://bugzilla.gnome.org/show_bug.cgi?id=672548
2012-07-14 15:16:57 -04:00
Dan Winship
12ac7ddd6d
g_app_info_launch_default_for_uri: don't use GFile if we don't have to
...
GFile doesn't handle some "real" URIs, so check if there's a default
handler for the URI scheme first, and only use g_file_new_for_uri()
and g_file_query_default_handler() if not. Eg, this fixes the case of
opening http URIs with "%2F" in the path.
https://bugzilla.gnome.org/show_bug.cgi?id=666386
2012-07-14 15:16:57 -04:00
Holger Berndt
fcdf779016
Document that g_app_info_create_from_commandline() does unquoting according to fd.o
...
https://bugzilla.gnome.org/show_bug.cgi?id=676277
2012-07-14 15:16:57 -04:00
Dan Winship
a9435d59b4
gnetworkmonitornetlink: don't leak the list of networks
...
https://bugzilla.gnome.org/show_bug.cgi?id=676265
2012-07-14 15:16:56 -04:00
Matthias Clasen
e5ca9ed5c9
gsettings: add reset-recursively to bash completion
...
https://bugzilla.gnome.org/show_bug.cgi?id=675832
2012-07-14 15:16:56 -04:00
Ravi Sankar Guntur
421a44711f
glib: fix memory leaks in gutils, protocol, and strfuncs tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=672329
Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com >
2012-07-14 15:16:55 -04:00
Paolo Borelli
d1f1389649
gfile: add g_return_if_fail to g_file_make_directory_with_parents()
2012-07-14 15:16:55 -04:00
Colin Walters
cd49c0973d
gfile: Plug memory leak in g_file_make_directory_with_parents()
...
The logic here is pretty twisted, but basically we were leaking a ref
for each non-existent parent. The clearest way to fix this was to
move to more explicit refcounting logic; when a variable is pointing
to an object, it holds a ref.
https://bugzilla.gnome.org/show_bug.cgi?id=675446
2012-07-14 15:16:55 -04:00
Matthias Clasen
a2fd72d958
Use non-deprecated api in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=660851
2012-07-14 15:16:54 -04:00
Jasper St. Pierre
146343054c
gkeyfile: Fix annotations for g_key_file_load_from_data
...
https://bugzilla.gnome.org/show_bug.cgi?id=675309
2012-07-14 15:16:54 -04:00
Lars Uebernickel
4e718cf4cf
docs: reference g_menu_item_new in gmenu convenience menuitem API
2012-07-14 15:16:54 -04:00
Chun-wei Fan
fd8d17726f
msvc_recommended_pragmas.h: Re-enable C4819 warnings
...
Apparently the C4819 warnings appear due to a bug on Visual C++ on DBCS
locales, so re-enable this.
Add a note in the Visual C++ Readme.txt's regarding this.
2012-06-20 10:20:37 +08:00
Nilamdyuti Goswami
09e28631b0
Assamese translation reviewed
2012-06-19 18:41:23 +05:30
David Zeuthen
667284a19d
GDBusProxy: Treat org.freedesktop.systemd1.Masked error as non-fatal
...
This is useful otherwise we'll fail if a systemd service is
masked. See bug 677718 for details.
https://bugzilla.gnome.org/show_bug.cgi?id=677718
Signed-off-by: David Zeuthen <zeuthen@gmail.com >
2012-06-08 13:37:21 -04:00
Rūdolfs Mazurs
deccfdc256
Updated Latvian translation
2012-06-05 17:27:15 +03:00
Debarshi Ray
200b390d83
gio: The tmpl parameter to g_file_new_tmp can be NULL
...
Fixes: https://bugzilla.gnome.org/676208
2012-05-21 17:56:01 +02:00
Daniel Nylander
90d9567c99
Updated Swedish translation
2012-05-18 10:02:20 +02:00
Matthias Clasen
83c58bfe77
bump version
2012-05-14 19:52:34 -04:00
Matthias Clasen
5cd829c924
Keep interface age in sync with micro
2.32.3
2012-05-14 18:06:02 -04:00
Matthias Clasen
1f55caae10
Updates
2012-05-14 18:05:48 -04:00