1. 10 Sep, 2006 1 commit
  2. 16 Aug, 2006 1 commit
    • Matthias Clasen's avatar
      Add Since tags. Fix Since tag. (#351583, Brian Cameron) · 58ea1db4
      Matthias Clasen authored
      2006-08-15  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gbookmarkfile.c (g_bookmark_file_get_groups):
              * glib/gmain.c (g_source_is_destroyed): Add Since tags.
              * glib/gkeyfile.c (g_key_file_get_double_list): Fix
              Since tag.  (#351583, Brian Cameron)
      58ea1db4
  3. 05 Jun, 2006 2 commits
  4. 02 Jun, 2006 3 commits
  5. 10 May, 2006 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed to glib/gthreadprivate.h and moved system thread identifier · e4f8f3b9
      Sebastian Wilhelmi authored
      
      2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
      
      	* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
      	system thread identifier comparision and assignment macros from
      	glib/gthread.c to glib/gthreadprivate.h.
      
      	* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
      	glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
      	glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
      	glib/gthreadprivate.h instead of glib/gthreadinit.h.
      
      	* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
      	owner determination. This fixes #311043 and is mostly modeled
      	after the patch from jylefort@FreeBSD.org.
      e4f8f3b9
  6. 20 Mar, 2006 1 commit
    • Matthias Clasen's avatar
      use standard_calloc to allocate the profile_data. (#335209, Chris Wilson) · d0ee6384
      Matthias Clasen authored
      2006-03-20  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gmem.c (profiler_log): use standard_calloc to allocate
              the profile_data.  (#335209, Chris Wilson)
      
              * glib/gmain.c (g_main_context_unref): Avoid a deadlock.
              (#335207, Chris Wilson)
      
              Minor optimizations (#335216, Chris Wilson):
      
              * glib/gasyncqueue.c (g_async_queue_pop_intern_unlocked): Use
              g_queue_peek_tail_link instead of g_queue_peek_tail.
      
              * glib/glist.c:
              * glib/gslist.c: Avoid some memset calls.
      d0ee6384
  7. 05 Jan, 2006 1 commit
  8. 03 Jan, 2006 2 commits
  9. 05 Dec, 2005 1 commit
    • Tim Janik's avatar
      implement chain walking for arbitrary ->next pointer offsets in · 6ed79b11
      Tim Janik authored
      Mon Dec  5 15:53:20 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gslice.c: implement chain walking for arbitrary ->next pointer
              offsets in g_slice_free_chain_with_offset() based on a patch by behdad
              in bug 323178. moved time consuming logic from g_slice_free() out of
              the inner loop, so g_slice_free_chain_with_offset() provides a real
              performance benefit over g_slice_free1() now.
      
              * glib/gslice.h: renamed g_slice_free_chain() to
              g_slice_free_chain_with_offset(). implemented g_slice_free_chain() as
              a type-safe macro as suggested in bug 323178.
              simplified the macro implementation of g_slice_free() and implemented
              it in a type safe manner for all compliers as suggested by Morten
              Welinder <mortenw@gnome.org>.
      
              * glib/gmain.c:
              * glib/glist.c:
              * glib/gslist.c:
              * glib/glib.symbols: s/g_slice_free_chain/g_slice_free_chain_with_offset/
      6ed79b11
  10. 07 Nov, 2005 1 commit
  11. 04 Nov, 2005 1 commit
  12. 01 Nov, 2005 1 commit
    • Tim Janik's avatar
      prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to · 0cba1b53
      Tim Janik authored
      Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
              added g_slice_*() API to allocate and cache small bits of memory.
              an actuall allocator implementation for g_slice_*() is still pending.
      
              * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
              changed GRealThread list to use in-structure *next; fields instead
              of GSList, in order for thread iteration to not depenend on g_slice_*()
              indirectly.
              _g_thread_mem_private_get():
              _g_thread_mem_private_set(): added accessors for private memory,
              needed because the ordinary GPrivate implementation relies on GArray
              and GSList and therefore indirectly on working g_slice_*() allocations.
      
              * glib/gthread.[hc]:
              g_thread_foreach(): new public API function to loop over all existing threads.
      
              * glib/gdataset.c:
              * glib/gstring.c:
              * glib/gcache.c:
              * glib/garray.c:
              * glib/gqueue.c:
              * glib/gslist.c:
              * glib/glist.c:
              * glib/ghash.c:
              * glib/gtree.c:
              * glib/ghook.c:
              * glib/gmain.c:
              * glib/gnode.c:
              removed GAllocator and free list usages and accompanying locks.
              use g_slice_*() API to allocate and cache small bits of memory.
      
              * glib/ghook.h: removed GMemChunk field from public API.
      
              * glib/gslist.h:
              * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
      
              * glib/gnode.h: deprecate allocator API.
      
              * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
              be used for poll rec lists.
      
              * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
              g_relation_destroy(): free all tuples from the all_tuples hash table,
              this effectively maintains the life time track keeping of tuples.
              g_relation_delete_tuple(): free tuples which are removed from the
              all_tuples hash table. this fixes a temporary leak that was present
              in the memchunk code until the destruction of the relation.
      0cba1b53
  13. 11 Sep, 2005 1 commit
    • Kjartan Maraas's avatar
      Remove some dead code. Closes bug #315278. · 2d3fff85
      Kjartan Maraas authored
      2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
      	(child_watch_helper_thread): Remove some dead code. Closes
      	bug #315278.
      2d3fff85
  14. 30 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Apply a patch which may make GLib work on BeOS again. (#309157, Kian · b78a0792
      Matthias Clasen authored
      2005-06-30  Matthias Clasen  <mclasen@redhat.com>
      
      	Apply a patch which may make GLib work on BeOS again.
      	(#309157, Kian Duffy)
      
      	* glib/gmain.c: Update the BeOS includes.
      
      	* glib/gstdio.c:
      	* glib/gutils.c (g_find_program_in_path):
      	* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
      	implementation on BeOS, as well.
      
      	* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
      	on BeOS.
      b78a0792
  15. 01 Apr, 2005 1 commit
    • Matthias Clasen's avatar
      Add a note regarding waitpid(-1). · 0914ea84
      Matthias Clasen authored
      2005-04-01  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gmain.c (g_child_watch_source_new): Add a note regarding
      	waitpid(-1).
      	(g_child_watch_source_init_multi_threaded):
      	(g_child_watch_source_init_single): Don't use SA_RESTART,
      	since it causes problems on at least one platform. (#168352)
      0914ea84
  16. 29 Mar, 2005 2 commits
    • Tor Lillqvist's avatar
      [Win32] Use GetSystemTimeAsFileTime() instead of time() and · 8ced6d24
      Tor Lillqvist authored
      2005-03-29  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gmain.c (g_get_current_time): [Win32] Use
      	GetSystemTimeAsFileTime() instead of time() and
      	GetTickCount(). Much simpler.
      8ced6d24
    • Tor Lillqvist's avatar
      If the event fired, assign f->revents=f->events. We can't know whether the · 52013430
      Tor Lillqvist authored
      2005-03-29  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gmain.c (g_poll): If the event fired, assign
      	f->revents=f->events. We can't know whether the upper layer using
      	the event actually is readable, writeable or what, so say that all
      	the conditions hold. Remove the ResetEvent() call that has been
      	ifdeffed out anyway for a long time. Remove an "#ifdef 1" and
      	#endif pair of lines, that code is not optional.
      52013430
  17. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  18. 08 Nov, 2004 3 commits
    • Manish Singh's avatar
      glib/gasyncqueue.c glib/ghook.c g_return_if_fail -> g_return_val_if_fail · f026692d
      Manish Singh authored
      Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
      
              * glib/gasyncqueue.c
              * glib/ghook.c
              * glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
      
              * glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
              return the passed in pointer.
      f026692d
    • Matthias Clasen's avatar
      Make g_io_channel_ref(), g_main_context_ref(), g_hook_ref(), · c83e5260
      Matthias Clasen authored
      2004-11-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gasyncqueue.[hc]:
      	* glib/ghook.[hc]:
      	* glib/gmain.[hc]:
      	* glib/giochannel.[hc]: Make g_io_channel_ref(),
      	g_main_context_ref(), g_hook_ref(), g_async_queue_ref()
      	return the passed in pointer. (#151663, Manish Singh)
      c83e5260
    • Matthias Clasen's avatar
      Initialize child_watch_count to 1, so that we don't miss the very first · 06312387
      Matthias Clasen authored
      2004-11-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gmain.c: Initialize child_watch_count to 1, so
      	that we don't miss the very first child if it exits
      	before we set up the child watch. In that case we had
      	previously source->count == child_watch_count == 0,
      	causing g_child_watch_check() to skip the waitpid()
      	call.  (#154827, Gustavo Carneiro)
      
      	* glib/gmain.c (g_child_watch_source_init_single)
      	(g_child_watch_source_init_multi_threaded): Use sigaction()
      	instead of signal().  (#136867, Jonas Jonsson, patch by
      	Archana Shah)
      06312387
  19. 24 Oct, 2004 1 commit
  20. 08 Oct, 2004 1 commit
  21. 16 Sep, 2004 1 commit
  22. 10 May, 2004 1 commit
    • Matthias Clasen's avatar
      Merge from 2.4: · 185c1de5
      Matthias Clasen authored
      2004-05-10  Matthias Clasen  <mclasen@redhat.com>
      
      	Merge from 2.4:
      
      	* glib/gmain.c (block_source, unblock_source): Make these
      	static.  (#142230, Morten Welinder)
      185c1de5
  23. 22 Apr, 2004 1 commit
  24. 10 Apr, 2004 1 commit
    • Tor Lillqvist's avatar
      glib/giowin32.c glib/gmain.c glib/gstrfuncs.c Decorating variable · 9b408061
      Tor Lillqvist authored
      2004-04-10  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giowin32.c
      	* glib/gmain.c
      	* glib/gstrfuncs.c
      	* glib/gthread.c: Decorating variable definitions with
      	__declspec(dllexport) causes problems on Cygwin build, and isn't
      	really needed for a native Win32 build with mingw or MSVC, so
      	remove. (#138402, Roger Leigh)
      
      	* glib/libcharset/localcharset.c: Use Win32-specific code also on
      	Cygwin.
      	* tests/uri-test.c: Don't assume that local filenames are in UTF-8
      	on Cygwin, either. (#138412, Roger Leigh)
      9b408061
  25. 19 Mar, 2004 1 commit
  26. 14 Mar, 2004 1 commit
  27. 11 Mar, 2004 1 commit
  28. 04 Mar, 2004 1 commit
  29. 02 Mar, 2004 1 commit
    • Owen Taylor's avatar
      === Released 2.3.5 === · 109ebb10
      Owen Taylor authored
      Mon Mar  1 16:49:51 2004  Owen Taylor  <otaylor@redhat.com>
      
              * === Released 2.3.5 ===
      
              * configure.in: Version 2.3.5, interface ago 0.
      
              * NEWS: Some further updates.
      109ebb10
  30. 01 Mar, 2004 4 commits
    • Owen Taylor's avatar
      Don't call waitpid() on a source that has already exited. · 44ef9006
      Owen Taylor authored
      Mon Mar  1 15:49:09 2004  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gmain.c (check_for_child_exited): Don't
              call waitpid() on a source that has already exited.
      
              * glib/gmain.c (g_child_watch_check): Return TRUE
              only if the child actually exited.
      44ef9006
    • Owen Taylor's avatar
      Patch from J. Ali Harlow · 38cbfaeb
      Owen Taylor authored
      Mon Mar  1 15:39:57 2004  Owen Taylor  <otaylor@redhat.com>
      
             Patch from J. Ali Harlow
      
              * configure.in: Use void * not HANDLE for GPid on win32.
      
              * glib/gspawn.[ch] glib/gspawn-win32.[ch] glib/glib.def:
              Add g_spawn_close_pid().
      
              * glib/gspawn.[ch]: Make g_spawn functions take
              GPid * instead if int * (GPid == int on unix, will
              produce compile warnings until fixed on Win32.)
      
              * tests/child-test.c: Make the test a little more
              inappropriately verbose.
      
              * glib/gmain.c: Add some documentation warnings about
              not closing @pid while the source is active.
      38cbfaeb
    • Owen Taylor's avatar
      Clarify doc comment. · 3e8b3a13
      Owen Taylor authored
      Mon Mar  1 09:17:32 2004  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gmain.c (g_main_depth): Clarify doc comment.
      3e8b3a13
    • Owen Taylor's avatar
      Fix leftover references to g_main_context_depth() in docs. · e1c15eb0
      Owen Taylor authored
      Sun Feb 29 21:42:47 2004  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gmain.c: Fix leftover references to
              g_main_context_depth() in docs.
      e1c15eb0