platform/upstream/glib.git
14 years agoMake gunixcredentialsmessage.h standalone includable
Matthias Clasen [Wed, 18 Aug 2010 16:07:01 +0000 (12:07 -0400)]
Make gunixcredentialsmessage.h standalone includable

14 years agoaction: Minor fixes
Emmanuele Bassi [Wed, 18 Aug 2010 15:54:36 +0000 (16:54 +0100)]
action: Minor fixes

• Argument validation.

• Since: annotations.

• Remove (allow-none) annotations from return values.

• Coding style fixes.

14 years agoaction-group: Check aginst the correct GType macro
Emmanuele Bassi [Wed, 18 Aug 2010 15:54:11 +0000 (16:54 +0100)]
action-group: Check aginst the correct GType macro

G_TYPE_ACTION_GROUP is not a G_TYPE_ACTION.

14 years agoGDBusProxy: Call into well-known name if no name owner currently exists
David Zeuthen [Wed, 18 Aug 2010 15:35:25 +0000 (11:35 -0400)]
GDBusProxy: Call into well-known name if no name owner currently exists

This is really what (API) users expect from GDBusProxy - in
particular, mclasen and I ran into this problem while debugging a
upower issue, see

 https://bugzilla.redhat.com/show_bug.cgi?id=624125

In a nutshell, the problem is that polkitd crashes while upower holds
a PolkitAuthority object (which in turns contains a GDBusProxy for the
well-known name org.freedesktop.PolicyKit1). This means that
subsequent calls on the PolkitAuthority (which is translated into
calls into the GDBusProxy) fails since :g-name-owner is NULL.

With this fix, we'll be requesting the bus daemon to launch polkitd
since we will start calling into org.freedesktop.PolicyKit1 as soon as
we notice that there is no owner for this name.

Unfortunately our test suite doesn't cover service activation so there
is no way to reliably test this. I will file a bug about this.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBusProxy: Use %, not #, for referencing enum constants in gtk-doc comments
David Zeuthen [Wed, 18 Aug 2010 14:52:28 +0000 (10:52 -0400)]
GDBusProxy: Use %, not #, for referencing enum constants in gtk-doc comments

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoG_OPTION_FLAG_NO_ARG is only for callback options
Christian Persch [Tue, 17 Aug 2010 23:02:22 +0000 (01:02 +0200)]
G_OPTION_FLAG_NO_ARG is only for callback options

Bug #627252.

14 years agoadd GSimpleActionGroup
Ryan Lortie [Wed, 18 Aug 2010 06:15:09 +0000 (02:15 -0400)]
add GSimpleActionGroup

and a simple test

14 years agoadd some missed bits in the docs
Ryan Lortie [Wed, 18 Aug 2010 06:14:37 +0000 (02:14 -0400)]
add some missed bits in the docs

14 years agoadd gaction.h to gio.h
Ryan Lortie [Wed, 18 Aug 2010 05:56:34 +0000 (01:56 -0400)]
add gaction.h to gio.h

14 years agoadd testcase for GAction
Ryan Lortie [Wed, 18 Aug 2010 05:55:48 +0000 (01:55 -0400)]
add testcase for GAction

fix some small bugs it found

14 years agoadd GAction base class
Ryan Lortie [Wed, 18 Aug 2010 05:45:15 +0000 (01:45 -0400)]
add GAction base class

14 years agogio.symbols: Fix missed symbol name tweak
Ryan Lortie [Wed, 18 Aug 2010 05:07:07 +0000 (01:07 -0400)]
gio.symbols: Fix missed symbol name tweak

14 years agopad the GActionGroup vtable
Ryan Lortie [Wed, 18 Aug 2010 04:37:50 +0000 (00:37 -0400)]
pad the GActionGroup vtable

14 years agoAdd gactiongroup.h to gio.h
Ryan Lortie [Wed, 18 Aug 2010 04:33:17 +0000 (00:33 -0400)]
Add gactiongroup.h to gio.h

14 years agoadd GActionGroup base class
Ryan Lortie [Wed, 18 Aug 2010 04:30:44 +0000 (00:30 -0400)]
add GActionGroup base class

14 years agoupdate gio/tests/.gitignore
Dan Winship [Tue, 17 Aug 2010 22:38:34 +0000 (18:38 -0400)]
update gio/tests/.gitignore

14 years agoPlug a mem leak in GDBusWorker
Christian Persch [Tue, 17 Aug 2010 16:38:46 +0000 (18:38 +0200)]
Plug a mem leak in GDBusWorker

Free the read buffer.

==26538== 4,096 bytes in 1 blocks are definitely lost in loss record 781 of 781
==26538==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==26538==    by 0x4005C66: realloc (vg_replace_malloc.c:476)
==26538==    by 0x405244D: g_realloc (gmem.c:181)
==26538==    by 0x420E066: _g_dbus_worker_do_read_unlocked (gdbusprivate.c:780)
==26538==    by 0x420E1D1: _g_dbus_worker_do_read (gdbusprivate.c:812)
==26538==    by 0x420F14A: _g_dbus_worker_thread_begin_func (gdbusprivate.c:1318)
==26538==    by 0x420D2ED: invoke_caller (gdbusprivate.c:266)
==26538==    by 0x404DA7C: g_idle_dispatch (gmain.c:4224)
==26538==    by 0x4049FCD: g_main_dispatch (gmain.c:2119)
==26538==    by 0x404B2C1: g_main_context_dispatch (gmain.c:2672)
==26538==    by 0x404B716: g_main_context_iterate (gmain.c:2750)
==26538==    by 0x404BE7F: g_main_loop_run (gmain.c:2958)
==26538==    by 0x420D2B5: shared_thread_func (gdbusprivate.c:248)
==26538==    by 0x4077958: g_thread_create_proxy (gthread.c:1897)
==26538==    by 0x57D918: start_thread (pthread_create.c:301)
==26538==    by 0x4C6CBD: clone (clone.S:133)

Bug #627187.

14 years agoPlug a mem leak in gdbus-connection test
Christian Persch [Tue, 17 Aug 2010 16:29:14 +0000 (18:29 +0200)]
Plug a mem leak in gdbus-connection test

==26538== 145 (24 direct, 121 indirect) bytes in 1 blocks are definitely lost in loss record 765 of 790
==26538==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==26538==    by 0x405233C: g_malloc (gmem.c:134)
==26538==    by 0x406A57E: g_slice_alloc (gslice.c:836)
==26538==    by 0x406A60C: g_slice_copy (gslice.c:858)
==26538==    by 0x4035C5A: g_error_copy (gerror.c:160)
==26538==    by 0x41B6387: g_simple_async_result_set_from_error (gsimpleasyncresult.c:638)
==26538==    by 0x41FCDEB: g_dbus_connection_call_done (gdbusconnection.c:4808)
==26538==    by 0x41B682E: g_simple_async_result_complete (gsimpleasyncresult.c:762)
==26538==    by 0x41B686A: complete_in_idle_cb (gsimpleasyncresult.c:772)
==26538==    by 0x404DA7C: g_idle_dispatch (gmain.c:4224)
==26538==    by 0x4049FCD: g_main_dispatch (gmain.c:2119)
==26538==    by 0x404B2C1: g_main_context_dispatch (gmain.c:2672)
==26538==    by 0x404B716: g_main_context_iterate (gmain.c:2750)
==26538==    by 0x404BE7F: g_main_loop_run (gmain.c:2958)
==26538==    by 0x804B5CC: test_connection_send (gdbus-connection.c:407)
==26538==    by 0x4073D04: test_case_run (gtestutils.c:1174)

Bug #627187.

14 years agoPlug a mem leak in gdbus-connection test
Christian Persch [Tue, 17 Aug 2010 16:20:23 +0000 (18:20 +0200)]
Plug a mem leak in gdbus-connection test

==25403== 49 (24 direct, 25 indirect) bytes in 1 blocks are definitely lost in loss record 603 of 787
==25403==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==25403==    by 0x405233C: g_malloc (gmem.c:134)
==25403==    by 0x406A57E: g_slice_alloc (gslice.c:836)
==25403==    by 0x406A5C3: g_slice_alloc0 (gslice.c:848)
==25403==    by 0x4035B4E: g_error_new_literal (gerror.c:117)
==25403==    by 0x4035ED9: g_set_error_literal (gerror.c:314)
==25403==    by 0x41F6434: g_dbus_connection_close_sync (gdbusconnection.c:1284)
==25403==    by 0x804A861: test_connection_life_cycle (gdbus-connection.c:158)
==25403==    by 0x4073D04: test_case_run (gtestutils.c:1174)
==25403==    by 0x4073FC2: g_test_run_suite_internal (gtestutils.c:1223)
==25403==    by 0x4074077: g_test_run_suite_internal (gtestutils.c:1233)
==25403==    by 0x4074077: g_test_run_suite_internal (gtestutils.c:1233)
==25403==    by 0x40741FB: g_test_run_suite (gtestutils.c:1274)
==25403==    by 0x40733E5: g_test_run (gtestutils.c:877)
==25403==    by 0x804DC92: main (gdbus-connection.c:1024)

Bug #627187.

14 years agoPlug a mem leak in the gdbus-connection test
Christian Persch [Tue, 17 Aug 2010 16:08:07 +0000 (18:08 +0200)]
Plug a mem leak in the gdbus-connection test

Bug #627182.

14 years agoUse g_memory_output_stream_steal_data here
Christian Persch [Sun, 20 Jun 2010 12:33:27 +0000 (14:33 +0200)]
Use g_memory_output_stream_steal_data here

... instead of one extra g_memdup().

Bug #627181.

14 years agoUse G_DEFINE_[BOXED|POINTER]_TYPE instead of handwritten code
Christian Persch [Sat, 24 May 2008 14:08:28 +0000 (16:08 +0200)]
Use G_DEFINE_[BOXED|POINTER]_TYPE instead of handwritten code

Now that we have convenience macros to implement boxed and pointer
types, use them.

14 years agoAdd G_DEFINE_{BOXED,POINTER}_TYPE[_WITH_CODE]
Christian Persch [Sat, 24 May 2008 14:08:04 +0000 (16:08 +0200)]
Add G_DEFINE_{BOXED,POINTER}_TYPE[_WITH_CODE]

Add convenience type definition macros for boxed and pointer types
similar to G_DEFINE_TYPE for object types. Bug #449565.

14 years agoAdd GZIP header processing to GZlibCompressor/GZlibDecompressor
Christian Persch [Thu, 13 May 2010 17:57:41 +0000 (19:57 +0200)]
Add GZIP header processing to GZlibCompressor/GZlibDecompressor

Add GZlibCompressor:file-info property. If it contains a non-NULL
GFileInfo, and the compressor is in GZIP mode, the filename and
modification time from the file info are written to the GZIP header
in the output data.

Add GZlibDeompressor:file-info property. If the decompressor is in GZIP
mode, and the GZIP data contains a GZIP header, the filename and
modification time are read from it, stored in a GFileInfo, and the
file-info property is notified.

Bug #617691.

14 years agoAdd g_memory_output_stream_steal_data
Christian Persch [Sun, 20 Jun 2010 12:32:52 +0000 (14:32 +0200)]
Add g_memory_output_stream_steal_data

Bug #622184.

14 years agoBump version
Matthias Clasen [Mon, 16 Aug 2010 20:36:38 +0000 (16:36 -0400)]
Bump version

14 years agoFix a typo 2.25.14
Matthias Clasen [Mon, 16 Aug 2010 19:44:40 +0000 (15:44 -0400)]
Fix a typo

14 years agoAdd NEWS item for bug 627071
David Zeuthen [Mon, 16 Aug 2010 19:42:23 +0000 (15:42 -0400)]
Add NEWS item for bug 627071

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 627071 – g_output_stream_write() clarification
David Zeuthen [Mon, 16 Aug 2010 19:37:01 +0000 (15:37 -0400)]
Bug 627071 – g_output_stream_write() clarification

This patch guarantees that g_output_stream_write() can never fail with
G_IO_ERROR_WOULD_BLOCK. Without such a guarantee, we would need some
kind of GIOPollable interface or some way to get an event when the
stream is writable again. Which is mostly useless considering that
this method is asynchronous anyway.

Note: this patch just codifies existing behavior - GUnixOutputStream,
GSocketOutputStream and other implementations already work this way.

See also bug 626748 comment 5 for how the GDBus code relies on this
guarantee.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoMore NEWS
Matthias Clasen [Mon, 16 Aug 2010 19:32:13 +0000 (15:32 -0400)]
More NEWS

14 years agoFix a doc format issue
Matthias Clasen [Mon, 16 Aug 2010 19:28:36 +0000 (15:28 -0400)]
Fix a doc format issue

14 years agoUpdate NEWS for 2.25.14
Matthias Clasen [Mon, 16 Aug 2010 19:16:16 +0000 (15:16 -0400)]
Update NEWS for 2.25.14

14 years agoBug 626748 – Use async methods for writing and handle EAGAIN
David Zeuthen [Mon, 16 Aug 2010 17:43:35 +0000 (13:43 -0400)]
Bug 626748 – Use async methods for writing and handle EAGAIN

If sending a lot of data and/or the other peer is not reading it, then
socket buffers can overflow. This is communicated from the kernel by
returning EAGAIN. In GIO, it is modelled by g_output_stream_write()
and g_socket_send_message() returning G_IO_ERROR_WOULD_BLOCK.

It is also problematic that that we're using synchronous IO in the
shared GDBus IO thread. It means that one GDBusConnection can lock up
others.

It turns out that by porting from g_output_stream_write() to
g_output_stream_write_async() we fix the EAGAIN issue. For GSocket, we
still need to handle things manually (by creating a GSource) as
g_socket_send_message() is used.

We check the new behavior in Michael's producer/consumer test case (at
/gdbus/overflow in gdbus-peer.c) added in the last commit.

Also add a test case that sends and receives a 20 MiB message.

Also add a new `transport' G_DBUS_DEBUG option so it is easy to
inspect partial writes:

 $ G_DBUS_DEBUG=transport ./gdbus-connection -p /gdbus/connection/large_message
 [...]
 ========================================================================
 GDBus-debug:Transport:
   >>>> WROTE 128000 bytes of message with serial 4 and
        size 20971669 from offset 0 on a GSocketOutputStream
 ========================================================================
 GDBus-debug:Transport:
   >>>> WROTE 128000 bytes of message with serial 4 and
        size 20971669 from offset 128000 on a GSocketOutputStream
 ========================================================================
 GDBus-debug:Transport:
   >>>> WROTE 128000 bytes of message with serial 4 and
        size 20971669 from offset 256000 on a GSocketOutputStream
 [...]
 ========================================================================
 GDBus-debug:Transport:
   >>>> WROTE 43669 bytes of message with serial 4 and
        size 20971669 from offset 20928000 on a GSocketOutputStream
 [...]
 ========================================================================
 GDBus-debug:Transport:
   <<<< READ 16 bytes of message with serial 3 and
        size 20971620 to offset 0 from a GSocketInputStream
 ========================================================================
 GDBus-debug:Transport:
   <<<< READ 15984 bytes of message with serial 3 and
        size 20971620 to offset 16 from a GSocketInputStream
 ========================================================================
 GDBus-debug:Transport:
   <<<< READ 16000 bytes of message with serial 3 and
        size 20971620 to offset 16000 from a GSocketInputStream
 [...]
 ========================================================================
 GDBus-debug:Transport:
   <<<< READ 144000 bytes of message with serial 3 and
        size 20971620 to offset 20720000 from a GSocketInputStream
 ========================================================================
 GDBus-debug:Transport:
   <<<< READ 107620 bytes of message with serial 3 and
        size 20971620 to offset 20864000 from a GSocketInputStream
 OK

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGSocket: Properly initialize msg.msg_control
David Zeuthen [Mon, 16 Aug 2010 16:30:25 +0000 (12:30 -0400)]
GSocket: Properly initialize msg.msg_control

This patch fixes this problem

   Syscall param socketcall.sendmsg(msg.msg_control) points to uninitialised byte(s)
      at 0x3D5B00EA60: __sendmsg_nocancel (syscall-template.S:82)
      by 0x53F9790: g_socket_send_message (gsocket.c:2918)
      by 0x540FDD0: g_unix_connection_send_credentials (gunixconnection.c:351)
      by 0x542B93F: _g_dbus_auth_run_client (gdbusauth.c:618)
      by 0x5438001: initable_init (gdbusconnection.c:2191)
      by 0x53E09CC: g_initable_init (ginitable.c:105)
      by 0x543F6E9: g_bus_get_sync (gdbusconnection.c:6091)
      by 0x402C7E: test_connection_life_cycle (gdbus-connection.c:126)
      by 0x4C7CABB: test_case_run (gtestutils.c:1174)
      by 0x4C7CD84: g_test_run_suite_internal (gtestutils.c:1223)
      by 0x4C7CE49: g_test_run_suite_internal (gtestutils.c:1233)
      by 0x4C7CE49: g_test_run_suite_internal (gtestutils.c:1233)
    Address 0x7fefff9fc is on thread 1's stack

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoDeclare stream base classes as abstract
Matthias Clasen [Mon, 16 Aug 2010 14:21:38 +0000 (10:21 -0400)]
Declare stream base classes as abstract

14 years agoAlways do async vs sync correctly in GSocketConnection streams
Dan Winship [Thu, 24 Jun 2010 17:09:14 +0000 (13:09 -0400)]
Always do async vs sync correctly in GSocketConnection streams

Previously if a GSocketConnection had a blocking GSocket, it would
sometimes block during asynchonous I/O, and if it had a non-blocking
socket, it would sometimes return G_IO_ERROR_WOULD_BLOCK from
synchronous I/O. This fixes the connection to not depend on the socket
state.

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

14 years agoBelatedly add g_socket_client_get/set_timeout to docs and symbols
Dan Winship [Sun, 15 Aug 2010 11:57:37 +0000 (07:57 -0400)]
Belatedly add g_socket_client_get/set_timeout to docs and symbols

14 years agoGSocketClient: plug two leaks
Dan Winship [Sat, 14 Aug 2010 20:15:39 +0000 (16:15 -0400)]
GSocketClient: plug two leaks

g_socket_client_connect_async() was always leaking its GCancellable,
and would also leak any GSocket that eventually failed to connect
after returning G_IO_ERROR_PENDING.

14 years agoGSocketClient: add a timeout property
Dan Winship [Sat, 14 Aug 2010 19:04:24 +0000 (15:04 -0400)]
GSocketClient: add a timeout property

GSocket has a timeout flag now, but when using GSocketClient there was
no way to set the timeout until after connecting (or failing). Fix
that by adding a timeout property to GSocketClient.

14 years agoAdd examples for GAsyncInitiable and GSimpleAsyncResult
Will Thompson [Sat, 14 Aug 2010 03:34:44 +0000 (23:34 -0400)]
Add examples for GAsyncInitiable and GSimpleAsyncResult

Bug 602417

14 years agoDocument that _complete() et al. ref the GSimpleAsyncResult
Will Thompson [Sat, 14 Aug 2010 03:20:06 +0000 (23:20 -0400)]
Document that _complete() et al. ref the GSimpleAsyncResult

14 years ago_simple_async_result_is_valid: allow tag to be NULL
Will Thompson [Sat, 14 Aug 2010 03:15:27 +0000 (23:15 -0400)]
_simple_async_result_is_valid: allow tag to be NULL

Because g_simple_async_report_[g]error_in_idle() don't take a source tag
parameter, code that uses them can't currently use
g_simple_async_result_is_valid() (at least, not for the error case).

Bug 602417

14 years agoGVariant: be more explicit about adopting and returning floating refs
Simon McVittie [Sat, 14 Aug 2010 02:42:24 +0000 (22:42 -0400)]
GVariant: be more explicit about adopting and returning floating refs

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

14 years agoAdd bug references to some tests
Matthias Clasen [Sat, 14 Aug 2010 01:22:45 +0000 (21:22 -0400)]
Add bug references to some tests

14 years agoDocument vendor override files
Matthias Clasen [Sat, 14 Aug 2010 01:21:43 +0000 (21:21 -0400)]
Document vendor override files

Features without documentation, tsk tsk.

14 years agoFix doc format errors
Matthias Clasen [Sat, 14 Aug 2010 01:05:05 +0000 (21:05 -0400)]
Fix doc format errors

14 years agoAdd tests for async file replace and load
Matthias Clasen [Fri, 13 Aug 2010 23:40:48 +0000 (19:40 -0400)]
Add tests for async file replace and load

14 years agoCorrect a comment
Matthias Clasen [Fri, 13 Aug 2010 21:22:28 +0000 (17:22 -0400)]
Correct a comment

14 years agoAdd an async file create/write/read/delete test
Matthias Clasen [Fri, 13 Aug 2010 21:21:22 +0000 (17:21 -0400)]
Add an async file create/write/read/delete test

14 years agoFix a typo, and some doc reformatting
Matthias Clasen [Fri, 13 Aug 2010 21:19:01 +0000 (17:19 -0400)]
Fix a typo, and some doc reformatting

14 years agoAdd some long descriptions for filter streams
Matthias Clasen [Fri, 13 Aug 2010 20:04:04 +0000 (16:04 -0400)]
Add some long descriptions for filter streams

14 years agoRun volumemonitor test with local vfs
Matthias Clasen [Fri, 13 Aug 2010 19:15:21 +0000 (15:15 -0400)]
Run volumemonitor test with local vfs

This is an attempt to stop the test from hanging on some build bots
in build.gnome.org.

14 years agoBug 626841 – Add test-case for non-socket GIOStream
David Zeuthen [Fri, 13 Aug 2010 17:58:27 +0000 (13:58 -0400)]
Bug 626841 – Add test-case for non-socket GIOStream

Also fix a couple of bugs so it actually works.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoAdd test for EAGAIN overflow in gdbusconnection based on David's test.
Michael Meeks [Fri, 13 Aug 2010 16:56:19 +0000 (17:56 +0100)]
Add test for EAGAIN overflow in gdbusconnection based on David's test.

14 years agoAdd some async file tests
Matthias Clasen [Fri, 13 Aug 2010 16:04:21 +0000 (12:04 -0400)]
Add some async file tests

14 years agoCollect NEWS for 2.25.14
Matthias Clasen [Fri, 13 Aug 2010 04:47:02 +0000 (00:47 -0400)]
Collect NEWS for 2.25.14

14 years agoBump version
Matthias Clasen [Fri, 13 Aug 2010 04:30:58 +0000 (00:30 -0400)]
Bump version

14 years agoGAsyncQueue: use g_queue_init() not g_queue_new()
Havoc Pennington [Fri, 13 Aug 2010 03:57:26 +0000 (23:57 -0400)]
GAsyncQueue: use g_queue_init() not g_queue_new()

By using g_queue_init() instead of g_queue_new(), we can avoid
a separate memory allocation.

Bug 626704

14 years agoUpdated Swedish translation
Daniel Nylander [Thu, 12 Aug 2010 11:19:50 +0000 (13:19 +0200)]
Updated Swedish translation

14 years agoFix gio/win32 build after -I flag changes
Tor Lillqvist [Tue, 10 Aug 2010 13:01:39 +0000 (16:01 +0300)]
Fix gio/win32 build after -I flag changes

14 years agoUpdate Simplified Chinese translation.
Aron Xu [Mon, 9 Aug 2010 06:26:38 +0000 (14:26 +0800)]
Update Simplified Chinese translation.

14 years agoReplace the explicit list of character categories by a reference
Matthias Clasen [Mon, 9 Aug 2010 03:53:52 +0000 (23:53 -0400)]
Replace the explicit list of character categories by a reference
to the GUnicodeType docs.

14 years agoRefer to GUnicodeScript docs instead of listing scripts explicitly
Matthias Clasen [Mon, 9 Aug 2010 03:43:29 +0000 (23:43 -0400)]
Refer to GUnicodeScript docs instead of listing scripts explicitly

14 years agoMove GRegex docs inline
Matthias Clasen [Mon, 9 Aug 2010 03:21:54 +0000 (23:21 -0400)]
Move GRegex docs inline

14 years agoWhitespace cleanup
Matthias Clasen [Mon, 9 Aug 2010 02:19:10 +0000 (22:19 -0400)]
Whitespace cleanup

14 years agoRemove two redundant comments
Matthias Clasen [Mon, 9 Aug 2010 02:15:16 +0000 (22:15 -0400)]
Remove two redundant comments

14 years agoFix up a doc typo
Matthias Clasen [Mon, 9 Aug 2010 02:14:56 +0000 (22:14 -0400)]
Fix up a doc typo

14 years agoMinor cleanup
Matthias Clasen [Mon, 9 Aug 2010 02:12:40 +0000 (22:12 -0400)]
Minor cleanup

The definition is now present in pcre.h

14 years agoMove GConvert docs inline
Matthias Clasen [Mon, 9 Aug 2010 02:11:38 +0000 (22:11 -0400)]
Move GConvert docs inline

14 years agoupdate translation for master
A S Alam [Tue, 10 Aug 2010 00:54:02 +0000 (06:24 +0530)]
update translation for master

14 years agoAdd introspection annotations in gregex.c
Matthias Clasen [Mon, 9 Aug 2010 01:29:26 +0000 (21:29 -0400)]
Add introspection annotations in gregex.c

Also, make the new getters follow the style of other GRegex getters,
and take a const GRegex *.

14 years agoDon't compile some unused functions in gio/xdgmime/
Matthias Clasen [Mon, 9 Aug 2010 00:49:59 +0000 (20:49 -0400)]
Don't compile some unused functions in gio/xdgmime/

14 years agoDon't compile an unused function
Matthias Clasen [Sun, 8 Aug 2010 22:35:12 +0000 (18:35 -0400)]
Don't compile an unused function

14 years agoTrivial typo fix
Matthias Clasen [Sun, 8 Aug 2010 22:34:59 +0000 (18:34 -0400)]
Trivial typo fix

14 years agoImprove regex test coverage
Matthias Clasen [Sun, 8 Aug 2010 22:34:38 +0000 (18:34 -0400)]
Improve regex test coverage

14 years agoImprove the async result test coverage
Matthias Clasen [Sun, 8 Aug 2010 15:32:50 +0000 (11:32 -0400)]
Improve the async result test coverage

14 years agoImprove dbus address test coverage
Matthias Clasen [Sun, 8 Aug 2010 15:31:53 +0000 (11:31 -0400)]
Improve dbus address test coverage

14 years agoUpdated galician translations
Fran Diéguez [Sun, 8 Aug 2010 23:11:59 +0000 (01:11 +0200)]
Updated galician translations

14 years agoImprove regex test coverage
Matthias Clasen [Sun, 8 Aug 2010 05:09:18 +0000 (01:09 -0400)]
Improve regex test coverage

14 years agoDrop some unused code
Matthias Clasen [Sun, 8 Aug 2010 05:08:34 +0000 (01:08 -0400)]
Drop some unused code

Some functions in pcre_get.c are not used.

14 years agoSimplify gcov generation
Matthias Clasen [Sun, 8 Aug 2010 05:07:53 +0000 (01:07 -0400)]
Simplify gcov generation

lcov seems to handle .libs just fine on its own.

14 years agoBug 578295 - gtester has a race condition
Ryan Lortie [Sat, 7 Aug 2010 23:58:12 +0000 (19:58 -0400)]
Bug 578295 - gtester has a race condition

Deal with the race in GMainLoop by installing a do-nothing timeout.

14 years agoMake g_dbus_error_unregister_error work
Matthias Clasen [Sat, 7 Aug 2010 22:56:12 +0000 (18:56 -0400)]
Make g_dbus_error_unregister_error work

14 years agoAdd some more test about gdbus_error apis
Matthias Clasen [Sat, 7 Aug 2010 22:55:21 +0000 (18:55 -0400)]
Add some more test about gdbus_error apis

14 years agoMake g_simple_async_result_is_valid work without source
Matthias Clasen [Sat, 7 Aug 2010 21:08:54 +0000 (17:08 -0400)]
Make g_simple_async_result_is_valid work without source

The problem was pointed out by Xavier Claessens in bug 626208.

14 years agoMake the closure variants of name owning and watching actually work
Matthias Clasen [Sat, 7 Aug 2010 20:27:38 +0000 (16:27 -0400)]
Make the closure variants of name owning and watching actually work

The GClosure API is a bit funky (and badly documented), and requires
you to set a marshaller on the closure, and the marshaller has an
implicit 'this' argument, and the caller is reponsible for unsetting
the values after invoking the closure.

I've added some calls of the _with_closures variants to the
gdbus-names test now.

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 7 Aug 2010 16:43:01 +0000 (18:43 +0200)]
Updated Norwegian bokmål translation

14 years agonotifyqueue: Dedup pspecs when adding 2.25.13
Benjamin Otte [Fri, 6 Aug 2010 21:15:28 +0000 (23:15 +0200)]
notifyqueue: Dedup pspecs when adding

The previous code dedup'd when thawing and threw nasty warnings your way
if you notified too often. This can now easily be avoided.

Performance should be roughly identical, as both are O(n²).

14 years agoPrepare to release glib 2.25.13
Ryan Lortie [Fri, 6 Aug 2010 20:48:03 +0000 (16:48 -0400)]
Prepare to release glib 2.25.13

14 years agogitignore update
Ryan Lortie [Fri, 6 Aug 2010 20:42:36 +0000 (16:42 -0400)]
gitignore update

14 years agogtester: Run tests only once on 'make check'
Ryan Lortie [Fri, 6 Aug 2010 19:28:58 +0000 (15:28 -0400)]
gtester: Run tests only once on 'make check'

The gtester makefile runs 'make test' on 'make check' and also recurses
on 'make test'.  automake recurses on 'make check'.

This means that every level of recursive make that we go through results
in the tests running twice as many times.  If you type 'make check' at
the toplevel, for example, tests in gio/tests/ run 4 times.

Fix that by introducing a 'test-nonrecursive' target and using that one
from 'make check'.  'make test', 'make test-report', etc. are still
recursive.

14 years agoFix volumemonitor test case
Ryan Lortie [Fri, 6 Aug 2010 17:12:20 +0000 (13:12 -0400)]
Fix volumemonitor test case

Don't blindly g_object_unref() that which may be NULL.

14 years agogio.symbols: add g_dbus_message_[gs]et_byte_order
Ryan Lortie [Fri, 6 Aug 2010 17:11:38 +0000 (13:11 -0400)]
gio.symbols: add g_dbus_message_[gs]et_byte_order

14 years agotypo fix: Dist the data for the test cases
Ryan Lortie [Fri, 6 Aug 2010 17:11:20 +0000 (13:11 -0400)]
typo fix: Dist the data for the test cases

change 'dist_hook:' to 'dist-hook:'

14 years agoReplace -I with $(glib_INCLUDES) and friends
Ryan Lortie [Fri, 6 Aug 2010 17:09:26 +0000 (13:09 -0400)]
Replace -I with $(glib_INCLUDES) and friends

Stop using ad hoc -I in all of our Makefile.am.  Use the new variables
instead.

14 years agoconfigure.ac: define glib_INCLUDES and friends
Ryan Lortie [Fri, 6 Aug 2010 17:07:31 +0000 (13:07 -0400)]
configure.ac: define glib_INCLUDES and friends

These macros should be used instead of -I for things in the tree that
depend on various bits of glib.

also gobject_INCLUDES, gthread_INCLUDES, gmodule_INCLUDES, gio_INCLUDES

14 years agoClean up improper #includes
Ryan Lortie [Fri, 6 Aug 2010 17:05:18 +0000 (13:05 -0400)]
Clean up improper #includes

We have a lot of broken #including going on around the tree.  This has
gone unnoticed due to our sloppy use of -I.

14 years agoDon't dist 'glibconfig.h'
Ryan Lortie [Fri, 6 Aug 2010 14:53:07 +0000 (10:53 -0400)]
Don't dist 'glibconfig.h'

This is causing very serious problems when doing out-of-tree builds from
tarballs on architectures that are different from the architecture that
the tarball was created on.

This commit breaks the build in those cases, but I'll fix that in the
next commits.

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

14 years agoerror test case: don't double-free the source
Ryan Lortie [Fri, 6 Aug 2010 14:29:32 +0000 (10:29 -0400)]
error test case: don't double-free the source

g_propagate_prefixed_error() frees the source already, don't
g_error_free() it.

14 years agoavoid warning in gutils.h when using gcc with -Wconversion
Hannes Müller [Thu, 5 Aug 2010 21:11:03 +0000 (23:11 +0200)]
avoid warning in gutils.h when using gcc with -Wconversion

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