1. 10 Sep, 2006 1 commit
  2. 02 Jun, 2006 1 commit
  3. 03 Jan, 2006 1 commit
  4. 08 Nov, 2004 1 commit
    • 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
  5. 01 Mar, 2004 1 commit
  6. 14 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Wrap waitpid() as a GSource. This is a partial implementation of the "Unix · 540d02ba
      Matthias Clasen authored
      Sat Feb 14 01:21:34 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gmain.h:
      	* glib/gmain.c (g_child_watch_source_new):
      	* glib/gmain.c (g_child_watch_add):
      	* glib/gmain.c (g_child_watch_add_full): Wrap waitpid() as a
      	GSource. This is a partial implementation of the "Unix signal
      	source".  (#50296, Jonathan R. Blandford)
      
      	* configure.in: Add the necessary configury to typedef GPid
      	appropriately.
      
      	* tests/Makefile.am:
      	* tests/child-test.c: Test child_watch sources.
      540d02ba
  7. 05 Jun, 2003 1 commit
    • Tor Lillqvist's avatar
      glib/giochannel.h Remove bogus (Win32-only) declaration of · 1cf610e2
      Tor Lillqvist authored
      2003-06-05  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giochannel.h
      	* glib/gmain.h: Remove bogus (Win32-only) declaration of
      	g_main_poll_win32_msg_add(). No such function exists.
      
      	* glib/gmain.c (g_poll) [Win32]: Use g_win32_error_message() for
      	better warning messages.
      1cf610e2
  8. 08 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      Trivial s/foo/foo_/ fixes to make <glib.h> includable with -Wshadow · d201974f
      Soeren Sandmann authored
      Fri Nov  8 19:44:20 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/glib/tmpl/arrays.sgml:
      	* docs/reference/glib/tmpl/arrays_byte.sgml:
      	* docs/reference/glib/tmpl/arrays_pointer.sgml:
      	* docs/reference/glib/tmpl/date.sgml:
      	* docs/reference/glib/tmpl/linked_lists_double.sgml:
      	* docs/reference/glib/tmpl/linked_lists_single.sgml:
      	* docs/reference/glib/tmpl/main.sgml:
      	* docs/reference/glib/tmpl/queue.sgml:
      	* docs/reference/glib/tmpl/random_numbers.sgml:
      	* docs/reference/glib/tmpl/relations.sgml:
      	* docs/reference/glib/tmpl/scanner.sgml:
      	* docs/reference/gobject/tmpl/gtype.sgml:
      	* docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
      	* glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
      	* glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
      	* glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
      
      	Trivial s/foo/foo_/ fixes to make <glib.h> includable with
      	-Wshadow without warnings (#91680)
      d201974f
  9. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Add a little bit of padding. · 67ea9743
      Owen Taylor authored
      Sat Feb 23 14:54:13 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/giochannel.h (struct _GIOChannel): Add a little bit
              of padding.
      
              * glib/gmain.h (struct _GSource): Add a little bit of padding.
      67ea9743
  10. 28 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Rename (private) GSource.id and id parameter to · 13852a10
      Owen Taylor authored
      Wed Nov 28 18:34:22 2001  Owen Taylor  <otaylor@redhat.com>
              * glib/gmain.[ch]: Rename (private) GSource.id and
              id parameter to g_main_context_find_source_by_id()
              to avoid problems with Objective C where 'id' is
              a keyword. (#65616)
      13852a10
  11. 03 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Add closure_marshal/closure_callback fields to GSourceFuncs for use by · b4c3107c
      Owen Taylor authored
      Mon Aug 27 14:56:12 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gmain.h: Add closure_marshal/closure_callback
      	fields to GSourceFuncs for use by g_source_set_closure().
      
      	* glib/gmain.c glib/giounix.c glib/giowin32.c
      	  glib/gmain.h: Export the SourceFuncs vtables so GObject
      	can use them to figure out closure callbacks/marshallers
      	for the default source types.
      
      Mon Aug 27 14:55:27 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gsourceclosure.[ch] (g_source_set_closure): Implement.
      
      	* gsourceclosure.[ch]: Add GType's for GIOChannel, GIOCondition.
      b4c3107c
  12. 30 Jun, 2001 2 commits
    • Owen Taylor's avatar
      Rename GSourceFuncs::destroy to GSourceFuncs::finalize. (#56858) · b37e7bbb
      Owen Taylor authored
      Sat Jun 30 16:03:16 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/giowin32.c glib/giounix.c glib/gmain.[ch]:
      	Rename GSourceFuncs::destroy to GSourceFuncs::finalize.
      	(#56858)
      b37e7bbb
    • Owen Taylor's avatar
      Make some changes to the way that GMainContext works: · 8951f96c
      Owen Taylor authored
      Sat Jun 30 15:49:10 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gmain.[ch]: (Mostly patch from Sebastian Wilhemi)
      	Make some changes to the way that GMainContext works:
      
      	 - a GMainContext is no longer associated with a single
      	   thread, but any thread can acquire ownership
      	   of thread and iterate.
      
      	 - There is a facility g_main_context_wait() for
      	   non-owner-threads to wait either for ownership
      	   or for a condition to be broadcast.
      
      	 - For efficiency, GMainLoop just piggybacks of
      	   of the loops mutex / condition instead of
      	   having a separate mutex/condition for each
      	   GMainLoop.
      
      	* glib/gthread.[ch]: Remove hacks to store the thread's
      	GMainContext in the GThread structures, since we
      	no longer have the GMainContext <=> GThread correspondence.
      
              * glib/gmain.[ch]: Make g_main_context_wakeup() public
      	so someone could completely duplicate GMainLoop
      	with the public API.
      
      	* tests/mainloop-test: Fix up to the new API. Decidedly
      	doesn't work at the moment, but that may be the IO
      	channel changes, or preexisting locking problems.
      8951f96c
  13. 26 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Move glib library into a subdirectory, make all GLib include files include · 2fd6b001
      Owen Taylor authored
      Tue Jun 26 11:43:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in Makefile.am *.[ch] glib/*.[ch] glib/Makefile.am:
      	Move glib library into a subdirectory, make all GLib include
      	files include as <glib/glist.h>
      
      	* tests/testglib.c tests/testgdate.c tests/testgdateparser.c
      	  tests/timeloop.c tests/timeloop-basic.c: Move all tests into
      	the tests/ subdirectory.
      2fd6b001
  14. 26 Mar, 2001 1 commit
    • Owen Taylor's avatar
      -DG_DISABLE_DEPRECATED · df2f429c
      Owen Taylor authored
      Mon Mar 26 14:14:53 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
      
      	* gmain.h timeloop.c: Surround the cruftiest stuff with
      	#ifndef G_DISABLE_DEPRECATED.
      
      	* gcompat.h gdate.h: Move compat defines back to
      	gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
      	Remove gcompat.h.
      df2f429c
  15. 03 Jan, 2001 1 commit
  16. 12 Dec, 2000 2 commits
    • Owen Taylor's avatar
      Revert unauthorized changes. · 70a7a765
      Owen Taylor authored
      Tue Dec 12 15:18:10 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gmain.[ch]: Revert unauthorized changes.
      70a7a765
    • Elliot Lee's avatar
      GMainContext useful in implementing some additional styles of main loop · 8f757977
      Elliot Lee authored
      
      
      * gmain.c, gmain.h (g_main_context_new, g_main_context_destroy): GMainContext useful
      in implementing some additional styles of main loop usage.  To do this, however, Joe
      Hacker needs to be able to create/destroy GMainContext's at will. This is just an
      export of existing functionality, rather than new functionality.
      
      They are listed in the "Low level functions for implementing custom main loops"
      section of the header file, to avoid confusing people.
      
      * gobject/Makefile.am:
        . You have to 'touch oldest-source-stamp' if you want to avoid having
        the Makefile constantly rebuild itself.
        . Fix marshaller generation rules to work with srcdir != builddir
          (there were issues with trying to run "./glib-genmarshal", etc.)
      8f757977
  17. 10 Dec, 2000 1 commit
    • Owen Taylor's avatar
      Remove pollfds from the context here, not when actually freeing the · cbd74878
      Owen Taylor authored
      Sun Dec 10 10:47:11 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gmain.c (g_source_destroy_internal): Remove pollfds
      	from the context here, not when actually freeing the
      	source.
      
      	* gmain.c (g_source_unref_internal): Free source list
      	and source, call source->source_funcs->destroy().
      
      	* giochannel.c: Unreference io_channel properly.
      cbd74878
  18. 08 Dec, 2000 1 commit
  19. 05 Dec, 2000 1 commit
    • Owen Taylor's avatar
      Major change in API for creating sources to handle multiple main loops · e2fd4e2b
      Owen Taylor authored
      Tue Dec  5 12:23:04 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gmain.[hc]: Major change in API for creating sources
      	to handle multiple main loops (GMainContext *).
      
      	GSources are now exposed as GSource * and implemented
      	with structure derivation.
      
      	* giochannel.[ch]: Changed vtable for GIOChannel to correspond
      	to the new mainloop API, add g_io_channel_create_watch().
      
      	* gtypes.h: Move GTimeVal here.
      
      	* gthread.h: Remove gmain.h include to avoid circularity.
      
              * giounix.c: Update for new GMain API.
      
      	* giowin32.c: Update for new GMain API. (No check for
      	proper compilation or working.)
      
      	* timeloop.c timeloop-basic.c: A benchmarking program for
      	the main loop comparing the main loop against a
      	hand-written (timeloop-basic.c) variant.
      
      	* tests/mainloop-test.c: New torture test of mainloop.
      
      	* docs/Changes-2.0.txt: Started. Added text about
      	changes to GMain.
      
      	* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
      	to zero. (#8482, Benjamin Kahn)
      e2fd4e2b
  20. 12 Oct, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Split glib.h into many header files mostly according to the resp. · b1d15587
      Sebastian Wilhelmi authored
      
      2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
      	gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
      	ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
      	gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
      	grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
      	gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
      	into many header files mostly according to the resp. *.c-files.
      
      	* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
      	of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
      	__END_DECLS.
      
      	* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
      	gunicode.h, : Changed guard-macro names to something more
      	consistent.
      
      	* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
      b1d15587