platform/upstream/glib.git
12 years agogio/tests/file: use g_file_new_tmp()
Dan Winship [Fri, 3 Feb 2012 16:29:46 +0000 (11:29 -0500)]
gio/tests/file: use g_file_new_tmp()

Rather than misusing g_file_open_tmp(), misuse g_file_new_tmp()
instead. Progress! (Also, gets rid of a compile warning about close()
on win32.)

12 years agogio/tests/socket-common.c: add a missing #ifdef G_OS_UNIX
Dan Winship [Fri, 3 Feb 2012 17:08:40 +0000 (12:08 -0500)]
gio/tests/socket-common.c: add a missing #ifdef G_OS_UNIX

12 years agogioenums.h: clean up a few GIOErrorEnum descriptions
Dan Winship [Fri, 3 Feb 2012 16:39:27 +0000 (11:39 -0500)]
gioenums.h: clean up a few GIOErrorEnum descriptions

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 3 Feb 2012 15:29:28 +0000 (16:29 +0100)]
Updated Spanish translation

12 years agoFix warning to refer to to-pixdata, not xmllint
Alexander Larsson [Fri, 3 Feb 2012 14:11:23 +0000 (15:11 +0100)]
Fix warning to refer to to-pixdata, not xmllint

12 years agoFix GResourceFile get_parent()
Alexander Larsson [Fri, 3 Feb 2012 14:05:03 +0000 (15:05 +0100)]
Fix GResourceFile get_parent()

This was erronously losing the last char.

12 years agoresource: tests: Use g_assert_cmp[u]int
Christian Persch [Wed, 1 Feb 2012 13:59:22 +0000 (14:59 +0100)]
resource: tests: Use g_assert_cmp[u]int

... instead of just g_assert(), so when the test does fail, one immediately
can see the actual value the variable had.

12 years agoresources: compiler: Fix entity processing of xml-stripblanks
Christian Persch [Tue, 31 Jan 2012 17:10:55 +0000 (18:10 +0100)]
resources: compiler: Fix entity processing of xml-stripblanks

Preserve entities instead of replacing them!

Bug #669173.

12 years agoresources: compiler: Make to-pixbuf failure fatal
Christian Persch [Tue, 31 Jan 2012 17:01:25 +0000 (18:01 +0100)]
resources: compiler: Make to-pixbuf failure fatal

Bug #669123.

12 years agogsettings tool: fix a memory error
Ryan Lortie [Thu, 2 Feb 2012 15:48:11 +0000 (10:48 -0500)]
gsettings tool: fix a memory error

8852d4e9a08e7fbc9df7fb99a54b112f5049ee19 introduced a memory error by
taking the type of a GVariant, freeing the GVariant and using the type
after the free.

This delays the free until after we've used the type.

https://bugzilla.gnome.org/show_bug.cgi?id=669253

12 years agogio: Convert data-to-c.c to perl
Kalev Lember [Wed, 1 Feb 2012 16:44:15 +0000 (18:44 +0200)]
gio: Convert data-to-c.c to perl

Helper scripts in C can be problematic for cross compiling: the compiler
produces executables for the target platform, which the host is usually
unable to run.

https://bugzilla.gnome.org/show_bug.cgi?id=669224

12 years agodocs: Clarify GSocketClient reuse policy
Benjamin Otte [Wed, 1 Feb 2012 15:25:01 +0000 (16:25 +0100)]
docs: Clarify GSocketClient reuse policy

12 years agogio/tests: Fix out-of-source build
Kalev Lember [Wed, 1 Feb 2012 13:48:28 +0000 (15:48 +0200)]
gio/tests: Fix out-of-source build

The glib-compile-resources --generate-dependencies call was failing,
although not stopping the build.

Failed to open file 'test2.gresource.xml': No such file or directory
Failed to open file 'test3.gresource.xml': No such file or directory
Failed to open file 'test4.gresource.xml': No such file or directory
Failed to open file 'test.gresource.xml': No such file or directory

12 years agogio.symbols: Add g_static_* symbols
Kalev Lember [Wed, 1 Feb 2012 08:09:57 +0000 (10:09 +0200)]
gio.symbols: Add g_static_* symbols

... which were added in b79cfda49c.

12 years agogresource-tool: include sys/mman.h conditionally
Kalev Lember [Wed, 1 Feb 2012 07:10:29 +0000 (09:10 +0200)]
gresource-tool: include sys/mman.h conditionally

It's only needed for code guarded by HAVE_LIBELF, so ifdef the include
as well.

12 years agoAdd a test to show that GMarkup properly handles > in content
Matthias Clasen [Wed, 1 Feb 2012 03:00:45 +0000 (22:00 -0500)]
Add a test to show that GMarkup properly handles > in content

12 years agoresources: Add to-pixdata preprocessing option
Alexander Larsson [Tue, 31 Jan 2012 15:07:09 +0000 (16:07 +0100)]
resources: Add to-pixdata preprocessing option

12 years agoMake constructor-based resource registration malloc free
Alexander Larsson [Tue, 31 Jan 2012 09:51:44 +0000 (10:51 +0100)]
Make constructor-based resource registration malloc free

We need to do this because constructors run before main() and
thus before any call to g_mem_set_vtable, making it impossible to
use that function if constructors call g_malloc.

We do this by making the constructors just register the static data
for lazy registration, doing the lazy registration when using
the global resource set.

12 years agoresources: Minor fixes to the docs
Alexander Larsson [Tue, 31 Jan 2012 09:51:23 +0000 (10:51 +0100)]
resources: Minor fixes to the docs

12 years agoBump version number
Matthias Clasen [Mon, 30 Jan 2012 23:47:31 +0000 (18:47 -0500)]
Bump version number

12 years ago2.31.14 2.31.14
Matthias Clasen [Mon, 30 Jan 2012 23:46:18 +0000 (18:46 -0500)]
2.31.14

12 years agoFix distclean
Matthias Clasen [Mon, 30 Jan 2012 23:45:45 +0000 (18:45 -0500)]
Fix distclean

12 years agoDist gconstructor.h
Matthias Clasen [Mon, 30 Jan 2012 22:54:33 +0000 (17:54 -0500)]
Dist gconstructor.h

12 years agoEmit meaningful error messages
Matthias Clasen [Mon, 30 Jan 2012 22:53:48 +0000 (17:53 -0500)]
Emit meaningful error messages

That is useful, even if this is only an internal tool.
I have been scratching my head why this tool would
break distcheck...

12 years agoFix builddir != src builds
Matthias Clasen [Mon, 30 Jan 2012 22:26:33 +0000 (17:26 -0500)]
Fix builddir != src builds

12 years agoSome more documentation fixes
Matthias Clasen [Mon, 30 Jan 2012 21:23:01 +0000 (16:23 -0500)]
Some more documentation fixes

12 years agoAssorted documentation fixes
Matthias Clasen [Mon, 30 Jan 2012 20:59:38 +0000 (15:59 -0500)]
Assorted documentation fixes

12 years agoDrop menu markup functions from API docs
Matthias Clasen [Mon, 30 Jan 2012 20:37:43 +0000 (15:37 -0500)]
Drop menu markup functions from API docs

12 years agoFix doc syntax
Matthias Clasen [Mon, 30 Jan 2012 20:37:28 +0000 (15:37 -0500)]
Fix doc syntax

12 years agoMove pragmas out of function body
Matthias Clasen [Mon, 30 Jan 2012 20:26:15 +0000 (15:26 -0500)]
Move pragmas out of function body

It seems that older gcc does not like pragmas inside functions.

12 years agoMove pragmas out of function body
Matthias Clasen [Mon, 30 Jan 2012 20:25:09 +0000 (15:25 -0500)]
Move pragmas out of function body

It seems that older gcc does not like pragmas inside functions.

12 years agoSilence another deprecation warning
Matthias Clasen [Mon, 30 Jan 2012 19:21:03 +0000 (14:21 -0500)]
Silence another deprecation warning

12 years agoSilence a deprecation warning
Matthias Clasen [Mon, 30 Jan 2012 19:18:07 +0000 (14:18 -0500)]
Silence a deprecation warning

Advantage of the new deprecation handling: there's pragmas
to shut them up locally.

12 years agoRemove a check that triggers deprecation warnings
Matthias Clasen [Mon, 30 Jan 2012 19:06:22 +0000 (14:06 -0500)]
Remove a check that triggers deprecation warnings

12 years agoUpdates
Matthias Clasen [Mon, 30 Jan 2012 18:38:44 +0000 (13:38 -0500)]
Updates

12 years agoMove constructor macros to an internal header and into generated code
Alexander Larsson [Mon, 30 Jan 2012 15:57:54 +0000 (16:57 +0100)]
Move constructor macros to an internal header and into generated code

With this we're not longer exporting the constructor headers, which means
we're not tying ourselves to a macro that might need special tweaking on
a compiler-by-compiler basis.

12 years agogoption: implement platform_get_argv0() for OpenBSD
Antoine Jacoutot [Mon, 30 Jan 2012 15:17:06 +0000 (16:17 +0100)]
goption: implement platform_get_argv0() for OpenBSD

https://bugzilla.gnome.org/show_bug.cgi?id=669024

12 years agogtlspassword.c: indentation fixes and doc clarifications
Dan Winship [Mon, 30 Jan 2012 14:00:15 +0000 (09:00 -0500)]
gtlspassword.c: indentation fixes and doc clarifications

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 29 Jan 2012 14:57:02 +0000 (22:57 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 28 Jan 2012 14:42:38 +0000 (15:42 +0100)]
Updated Norwegian bokmål translation

12 years agocomments/docs: Fix couple of typos
Ravi Sankar Guntur [Sat, 28 Jan 2012 06:32:36 +0000 (12:02 +0530)]
comments/docs: Fix couple of typos

https://bugzilla.gnome.org/show_bug.cgi?id=668857

12 years agoglib-compile-schemas: get strict about whitespace
Ryan Lortie [Sat, 28 Jan 2012 00:09:08 +0000 (01:09 +0100)]
glib-compile-schemas: get strict about whitespace

It's important to have strict rules for handling of whitespace in
translated strings in GSettings schema files so that the tools
extracting the messages will end up with the same messages as the
runtime calling gettext().

The rules are designed to be simple and unambiguous yet cover most
normal uses in a convenient way.

Those rules are as follows (with rationale):

  - for <default> tags, the text content has its leading and trailing
    whitespace stripped off, but internal whitespace is not modified in
    any way.

    This allows for slightly more flexible use of whitespace without
    causing that whitespace to appear in the strings for translation.

  - for <summary> and <description> tags, the content is split into
    paragraphs.  Paragraphs are separated by two or more sequential
    newline characters.  Each paragraph has its leading and trailing
    whitespace removed and all other whitespace is normalised to a
    single ascii space character.  Finally, the paragraphs are rejoined,
    inserting exactly two newlines between them.

    This allows for longer explanations (particularly in the description
    tag) using a natural format that, when normalised, will display
    nicely in toolkits.

This patch implements the rules for <default> tags.  The schema compiler
currently ignores <summary> and <description> tags.

12 years agoREADME: Fix potentially extremely annoying typo
Ryan Lortie [Fri, 27 Jan 2012 20:49:46 +0000 (21:49 +0100)]
README: Fix potentially extremely annoying typo

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 27 Jan 2012 12:39:52 +0000 (13:39 +0100)]
Updated Spanish translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 27 Jan 2012 10:17:23 +0000 (11:17 +0100)]
Updated Spanish translation

12 years agoGSettings: two memory use fixes
Ryan Lortie [Fri, 27 Jan 2012 08:00:23 +0000 (03:00 -0500)]
GSettings: two memory use fixes

First, correct a rather dubious case of accessing a GSettingsSchemaKey
after clearing it.  This was technically okay because only the key name
was accessed (and it is not owned by the struct) but it looks very
wrong.

Second, have g_settings_backend_write() sink the passed in GVariant*.
Not all backends get this right, and I'm starting to like the pattern of
virtual function wrappers being responsible for sinking the parameters
that they are documented as consuming.

12 years agogdbus-codegen: Use C array instead of GValueArray
David Zeuthen [Thu, 26 Jan 2012 19:52:09 +0000 (14:52 -0500)]
gdbus-codegen: Use C array instead of GValueArray

GValueArray was deprecated in bug 667228 and since we never change the
size of the array, it was kinda dumb to just GValueArray in the first
place.

https://bugzilla.gnome.org/show_bug.cgi?id=667228

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGKeyFile: allow loading from empty strings
Ryan Lortie [Thu, 26 Jan 2012 16:27:47 +0000 (11:27 -0500)]
GKeyFile: allow loading from empty strings

GKeyFile supports empty files and also supports loading from the string
"", but will fail with a critical if you try:

  - explicit length == 0
  - data == NULL

length == 0 should always be valid, and data == NULL should be valid in
the case that length == 0, so add some testcases for those and fix the
code up to allow them.

https://bugzilla.gnome.org/show_bug.cgi?id=668756

12 years agoGDBusInterface: add dup_object() method
David Zeuthen [Thu, 26 Jan 2012 19:16:28 +0000 (14:16 -0500)]
GDBusInterface: add dup_object() method

This is needed for thread-safety ... yes, it would have been better to
make get_object() return a full reference and have something like a
peek_object() method return a borrowed reference for C convenience
(only a single vfunc would have been needed). But such an ABI break is
too late now...

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agogio.symbols: Remove removed g_menu_markup_* symbols
David Zeuthen [Thu, 26 Jan 2012 19:06:59 +0000 (14:06 -0500)]
gio.symbols: Remove removed g_menu_markup_* symbols

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agogmain: fix a bunch of comment typos in g_get_monotonic_time()
Dan Winship [Thu, 26 Jan 2012 14:53:56 +0000 (09:53 -0500)]
gmain: fix a bunch of comment typos in g_get_monotonic_time()

And remove a comment about Windows in the fallback implementation that
no longer applies, since there's now a separate Windows-specific
implementation.

12 years agodocs: Fix formatting in glib-compile-resource man page
Christian Persch [Thu, 26 Jan 2012 14:22:10 +0000 (15:22 +0100)]
docs: Fix formatting in glib-compile-resource man page

Fixup the formatting in the example rule for --generate-dependencies.

12 years agoUpdated POTFILES.in
Rico Tzschichholz [Thu, 26 Jan 2012 13:52:31 +0000 (14:52 +0100)]
Updated POTFILES.in

12 years agokeyfile tests: Fix windows build using portable g_setenv
Andoni Morales Alastruey [Thu, 26 Jan 2012 13:38:14 +0000 (14:38 +0100)]
keyfile tests: Fix windows build using portable g_setenv

12 years agodocs: Fix the glib-compile-resources docs
Christian Persch [Thu, 26 Jan 2012 13:35:30 +0000 (14:35 +0100)]
docs: Fix the glib-compile-resources docs

Add a tag missing from commit 45783c5927f32cae965c67db14adb8422373d345.

12 years agoDrop the GMenu markup functions
Ryan Lortie [Thu, 26 Jan 2012 00:55:33 +0000 (19:55 -0500)]
Drop the GMenu markup functions

The parser has been moved into Gtk in a modified form and the printer
was never really useful anyway (except for debugging/testing).

12 years agoe G_SOURCE_CONTINUE/REMOVE internally
Matthias Clasen [Wed, 25 Jan 2012 19:18:34 +0000 (14:18 -0500)]
e G_SOURCE_CONTINUE/REMOVE internally

Now that we have these macros, we should use them.
This commit covers everything in gio/.

12 years agoUse G_SOURCE_CONTINUE/REMOVE internally
Matthias Clasen [Wed, 25 Jan 2012 13:53:05 +0000 (08:53 -0500)]
Use G_SOURCE_CONTINUE/REMOVE internally

Now that we have these macros, we should use them.
This commit covers everything in glib/.

12 years agoGHash: add note about randomness in hashing
Ryan Lortie [Wed, 25 Jan 2012 15:09:09 +0000 (10:09 -0500)]
GHash: add note about randomness in hashing

To clarify our statements about being robust against outside attackers
degrading the performance of your hashtable.

12 years agoresources: tool: Fix a compiler warning
Christian Persch [Tue, 24 Jan 2012 13:18:12 +0000 (14:18 +0100)]
resources: tool: Fix a compiler warning

Use G_GSIZE_FORMAT.

12 years agoresources: compiler: Add autoselected output format
Christian Persch [Mon, 23 Jan 2012 21:51:44 +0000 (22:51 +0100)]
resources: compiler: Add autoselected output format

This allows simplifying the make rules.

Bug #668539.

12 years agoresources: compiler: Add dependency generator
Christian Persch [Mon, 23 Jan 2012 19:42:20 +0000 (20:42 +0100)]
resources: compiler: Add dependency generator

Bug #668532.

12 years agoresources: compiler: Allow stripping blanks from xml data
Christian Persch [Sat, 14 Jan 2012 21:34:15 +0000 (22:34 +0100)]
resources: compiler: Allow stripping blanks from xml data

It's hardly useful to bloat the resource data with blanks intended only
for human readability, so add a preprocessing option that uses xmllint --noblanks
to strip these.

Bug #667929.

12 years agoGKeyFile: make list separators effective again
Matthias Clasen [Wed, 25 Jan 2012 12:32:39 +0000 (07:32 -0500)]
GKeyFile: make list separators effective again

We must preserve the list_separator across clear;init
sequences.

12 years agoFix the new test
Matthias Clasen [Wed, 25 Jan 2012 12:32:20 +0000 (07:32 -0500)]
Fix the new test

12 years agoAdd a test for g_key_file_set_list_separator
Matthias Clasen [Wed, 25 Jan 2012 12:26:58 +0000 (07:26 -0500)]
Add a test for g_key_file_set_list_separator

A recent 'harmless' fix broke it...

12 years agoGArray: initialize the clear_func pointer
Guillaume Desmottes [Wed, 25 Jan 2012 11:03:14 +0000 (12:03 +0100)]
GArray: initialize the clear_func pointer

https://bugzilla.gnome.org/show_bug.cgi?id=668650

12 years agogresource-tool: fix the build
Xan Lopez [Wed, 25 Jan 2012 09:28:27 +0000 (10:28 +0100)]
gresource-tool: fix the build

12 years agoMacro to insert a new GNode "after" the given sibling.
Ravi Sankar Guntur [Sat, 21 Jan 2012 16:47:18 +0000 (22:17 +0530)]
Macro to insert a new GNode "after" the given sibling.

https://bugzilla.gnome.org/show_bug.cgi?id=626258

Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
12 years agoHonor the glib_cv_g_atomic_lock_free env var in configure
Enrique Ocaña González [Tue, 24 Jan 2012 12:24:51 +0000 (13:24 +0100)]
Honor the glib_cv_g_atomic_lock_free env var in configure

This fixes bug: https://bugzilla.gnome.org/show_bug.cgi?id=668572

12 years agoDeprecate GValueArray
Emmanuele Bassi [Wed, 4 Jan 2012 09:31:12 +0000 (09:31 +0000)]
Deprecate GValueArray

The GValueArray type was added in a time, during the Jurassic era or so,
when GArray did not have a representable GType. The GValueArray API has
various issues as well:

  - it doesn't match the other GLib array types;
  - it is not reference counted;
  - the structure is fully exposed on the stack, so it cannot be
    extended to add reference counting;
  - it cannot be forcibly resized.

The nice thing is that now we have a GArray type that can replace in
full GValueArray, so we can deprecate the latter, and reduce the
complexity in GLib, application code, and bindings.

https://bugzilla.gnome.org/show_bug.cgi?id=667228

12 years agoarray: Add a clear function
Emmanuele Bassi [Wed, 4 Jan 2012 07:41:47 +0000 (07:41 +0000)]
array: Add a clear function

Like GPtrArray has a "free function" that can be used to free memory
associated to each pointer in the array, GArray would benefit from
having a "clear function" that can be used to clear the content of
each element of the array when it's removed, or when the entire array
is freed.

https://bugzilla.gnome.org/show_bug.cgi?id=667243

12 years agoGHashTable: Add a note about hash collisions
Matthias Clasen [Wed, 25 Jan 2012 02:11:13 +0000 (21:11 -0500)]
GHashTable: Add a note about hash collisions

12 years agogresource: Initialize i18n
Matthias Clasen [Tue, 24 Jan 2012 22:37:09 +0000 (17:37 -0500)]
gresource: Initialize i18n

...otherwise translations don't work. Pointed out by Kjartan Maraas.

https://bugzilla.gnome.org/show_bug.cgi?id=668561

12 years agokeyfile tests: Add testcase for bug #634232
Ryan Lortie [Tue, 24 Jan 2012 21:59:59 +0000 (16:59 -0500)]
keyfile tests: Add testcase for bug #634232

Add a testcase based on one by Alfredo Dal'Ava Júnior (the original
reporter of the bug).

https://bugzilla.gnome.org/show_bug.cgi?id=634232

12 years agoGKeyFile: remove approximate_size optimisation
Ryan Lortie [Tue, 24 Jan 2012 21:45:49 +0000 (16:45 -0500)]
GKeyFile: remove approximate_size optimisation

This is micro-optimisation of the worst kind and it's causing obscure
bugs in edge cases.  Better just remove this entirely.

https://bugzilla.gnome.org/show_bug.cgi?id=634232

12 years agoGSocket: fix complile on platforms without source-specific multicast
Dan Winship [Tue, 24 Jan 2012 13:28:33 +0000 (08:28 -0500)]
GSocket: fix complile on platforms without source-specific multicast

Some platforms don't have the source-specific multicast sockopts, and
so would fail to compile. Fix that (and return an error if the caller
tries to use source-specific). Also clarify the docs a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=668468

12 years agoWrite list-of value correctly
Christian Persch [Sun, 30 Jan 2011 19:45:52 +0000 (20:45 +0100)]
Write list-of value correctly

Fixes a c&p typo. Bug #639099.

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Tue, 24 Jan 2012 09:53:35 +0000 (10:53 +0100)]
Updated Norwegian bokmål translation

12 years agoGMenuMarkup: call g_variant_ref_sink()
Matthias Clasen [Tue, 24 Jan 2012 00:21:22 +0000 (19:21 -0500)]
GMenuMarkup: call g_variant_ref_sink()

Watch out for them floating variants !
They are easily consumed...

12 years agoUpdated Galician translations
Fran Diéguez [Mon, 23 Jan 2012 23:50:50 +0000 (00:50 +0100)]
Updated Galician translations

12 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 23 Jan 2012 19:15:30 +0000 (20:15 +0100)]
Updated POTFILES.in

12 years agoAdd docs for gresource
Matthias Clasen [Mon, 23 Jan 2012 05:23:18 +0000 (00:23 -0500)]
Add docs for gresource

12 years agoAdd a resource tool
Matthias Clasen [Sun, 22 Jan 2012 07:39:11 +0000 (02:39 -0500)]
Add a resource tool

This lets you poke at resources in elf files and
standalone resource bundles. So far, only listing
and extracting resources is supported. The support
for elf files requires libelf.

12 years agog_date_time_format: fix output in non-UTF-8 locales
Dan Winship [Thu, 19 Jan 2012 15:39:57 +0000 (10:39 -0500)]
g_date_time_format: fix output in non-UTF-8 locales

In non-UTF-8 locales, the translations and nl_langinfo() return values
must be converted to UTF-8 before being returned to the caller.
Likewise, when making a recursive call to expand a format like '%x',
the format string must first be converted to UTF-8.

https://bugzilla.gnome.org/show_bug.cgi?id=668250

12 years agobump rev
Matthias Clasen [Fri, 20 Jan 2012 20:42:44 +0000 (15:42 -0500)]
bump rev

12 years ago2.31.12 2.31.12
Matthias Clasen [Fri, 20 Jan 2012 20:10:29 +0000 (15:10 -0500)]
2.31.12

12 years agoUpdates
Matthias Clasen [Fri, 20 Jan 2012 20:10:00 +0000 (15:10 -0500)]
Updates

12 years agoSilence some compiler warnings
Matthias Clasen [Fri, 20 Jan 2012 13:08:06 +0000 (08:08 -0500)]
Silence some compiler warnings

12 years agoSilence a compiler warning
Matthias Clasen [Fri, 20 Jan 2012 13:07:52 +0000 (08:07 -0500)]
Silence a compiler warning

12 years agoFix a refcounting error
Matthias Clasen [Fri, 20 Jan 2012 13:02:26 +0000 (08:02 -0500)]
Fix a refcounting error

'new' is created floating, therefore it is consumed by
g_settings_set, and unreffing it after that call is not right.

12 years agoNote G_MESSAGES_DEBUG in README
Ryan Lortie [Fri, 20 Jan 2012 03:13:51 +0000 (22:13 -0500)]
Note G_MESSAGES_DEBUG in README

12 years agotests for GSettings action binding
Ryan Lortie [Thu, 19 Jan 2012 15:49:06 +0000 (10:49 -0500)]
tests for GSettings action binding

https://bugzilla.gnome.org/show_bug.cgi?id=668279

12 years agoadd a way to create a GAction from GSettings
Ryan Lortie [Thu, 19 Jan 2012 14:40:24 +0000 (09:40 -0500)]
add a way to create a GAction from GSettings

g_settings_create_action() will create a GAction for the named key,
allowing it to be added to the action group of the application (so that
the setting can be directly manipulated from menus, for example).

https://bugzilla.gnome.org/show_bug.cgi?id=668279

12 years agogsignal: add g_signal_handlers_disconnect_by_data
Ryan Lortie [Thu, 19 Jan 2012 14:01:08 +0000 (09:01 -0500)]
gsignal: add g_signal_handlers_disconnect_by_data

Similar to g_signal_handlers_disconnect_by_func() but disconnects all
functions that use the given user_data.

https://bugzilla.gnome.org/show_bug.cgi?id=668269

12 years agogioenums.h: Remove a trailing comma.
Murray Cumming [Thu, 19 Jan 2012 15:18:05 +0000 (16:18 +0100)]
gioenums.h: Remove a trailing comma.

12 years agoGSettingsSchema: ignore empty schema caches
Ryan Lortie [Thu, 19 Jan 2012 03:15:30 +0000 (22:15 -0500)]
GSettingsSchema: ignore empty schema caches

glib-compile-schemas used to generate these.  They're harmless and they
mean that no schemas are installed in a particular directory, so just
ignore them.

https://bugzilla.gnome.org/show_bug.cgi?id=656301

12 years agoresources: Plug mem leaks in resource compiler
Christian Persch [Sat, 14 Jan 2012 20:28:29 +0000 (21:28 +0100)]
resources: Plug mem leaks in resource compiler

==13007== 173 bytes in 1 blocks are definitely lost in loss record 90 of 106
==13007==    at 0x402AD89: malloc (vg_replace_malloc.c:236)
==13007==    by 0x407DDBA: standard_malloc (gmem.c:85)
==13007==    by 0x407E318: g_try_malloc (gmem.c:271)
==13007==    by 0x40654DE: g_file_get_contents (gfileutils.c:756)
==13007==    by 0x804A531: main (glib-compile-resources.c:580)

==13007== 521 (56 direct, 465 indirect) bytes in 1 blocks are definitely lost in loss record 100 of 106
==13007==    at 0x402AD89: malloc (vg_replace_malloc.c:236)
==13007==    by 0x407DDBA: standard_malloc (gmem.c:85)
==13007==    by 0x407E160: g_malloc (gmem.c:159)
==13007==    by 0x4091D8D: g_slice_alloc (gslice.c:1003)
==13007==    by 0x40674A1: g_hash_table_new_full (ghash.c:676)
==13007==    by 0x804B252: gvdb_hash_table_new (gvdb-builder.c:76)
==13007==    by 0x43C66B2: (below main) (libc-start.c:226)

12 years agoGApplication: drop support for appmenu/menubars
Ryan Lortie [Mon, 16 Jan 2012 19:47:08 +0000 (14:47 -0500)]
GApplication: drop support for appmenu/menubars

This has been moved over to GtkApplication now.

https://bugzilla.gnome.org/show_bug.cgi?id=668118

12 years agoupdate .gitignores
Dan Winship [Wed, 18 Jan 2012 18:28:00 +0000 (13:28 -0500)]
update .gitignores