1. 27 Sep, 2008 3 commits
    • Dan Winship's avatar
      Fix lots of typos, document g_assert_error() and g_assert_no_error() · 1ae3a4ae
      Dan Winship authored
      	* glib/tmpl/testing.sgml: Fix lots of typos, document
      	g_assert_error() and g_assert_no_error()
      
      svn path=/trunk/; revision=7557
      1ae3a4ae
    • Dan Winship's avatar
      Use g_assert_error() and g_assert_no_error() · 29ddd48f
      Dan Winship authored
      	* tests/data-input-stream.c:
      	* tests/data-output-stream.c:
      	* tests/live-g-file.c:
      	* tests/memory-input-stream.c:
      	* tests/memory-output-stream.c: Use g_assert_error() and
      	g_assert_no_error()
      
      svn path=/trunk/; revision=7556
      29ddd48f
    • Dan Winship's avatar
      Bug 553447 $(Q#|(B g_assert_no_error() · 5c53925e
      Dan Winship authored
      	* glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to
      	assert that a GError is not set, or else is set to a particular
      	error.
      
      	* glib/gtestutils.c (g_assertion_message_error): utility for
      	those macros
      
      	* glib/tests/keyfile.c:
      	* tests/asyncqueue-test.c:
      	* tests/bookmarkfile-test.c:
      	* tests/convert-test.c:
      	* tests/file-test.c: Use g_assert_error/g_assert_no_error
      
      svn path=/trunk/; revision=7555
      5c53925e
  2. 26 Sep, 2008 10 commits
    • Matthias Clasen's avatar
      Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for · 764e187f
      Matthias Clasen authored
      2008-09-26  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 545350 – GAppInfo deletion
              Bug 545351 – Reset associations for content type
      
              * gio.symbols:
              * gappinfo.[hc]: New functions g_app_info_can_delete,
              g_app_info_delete and g_app_info_reset_type_associations.
      
              * gdesktopappinfo.c:
              * gwin32appinfo.c: Implementations of these.
      
              * tests/Makefile.am:
              * tests/desktop-app-info.c: Tests for GAppInfo functionality.
      
      
      svn path=/trunk/; revision=7554
      764e187f
    • Dan Winship's avatar
      Bug 505361 - gunixinputstream.c assumes poll() available · 7f4864e5
      Dan Winship authored
      	Bug 509446 - portable blocking gio cancellation
      
      	* gcancellable.c (g_cancellable_make_pollfd): New method to make a
      	GPollFD for a cancellable (which is slightly more complicated on
      	Windows than Unix).
      
      	* gunixinputstream.c (g_unix_input_stream_read):
      	* gunixoutputstream.c (g_unix_output_stream_write): Use
      	g_cancellable_make_pollfd() and g_poll() rather than using poll()
      	directly.
      
      	* tests/unix-streams.c: test of GUnixInputStream,
      	GUnixOutputStream, and GCancellable.
      
      svn path=/trunk/; revision=7553
      7f4864e5
    • Dan Winship's avatar
      make this a "const gpointer" rather than a gconstpointer to avoid warnings · ea0970e9
      Dan Winship authored
      	* glib/gthreadpool.c (wakeup_thread_marker): make this a "const
      	gpointer" rather than a gconstpointer to avoid warnings later
      
      	* glib/pcre/pcre_ucp_searchfuncs.c:
      	* glib/pcre/pcre_valid_utf8.c: #include "config.h"
      
      	* glib/tests/printf.c (test_d): fool gcc into not warning about
      	some printf format strings that we know are dubious
      
      svn path=/trunk/; revision=7552
      ea0970e9
    • Dan Winship's avatar
      add uint* -> int* casts in g_atomic_int calls to avoid gcc warnings · 7afe2bb0
      Dan Winship authored
      	* gobject.c (g_object_ref, g_object_unref)
      	(g_object_freeze_notify, g_object_notify, g_object_thaw_notify):
      	* gparam.c (g_param_spec_ref, g_param_spec_unref):
      	* gsignal.c (handler_ref, handler_unref_R): add uint* -> int*
      	casts in g_atomic_int calls to avoid gcc warnings
      
      svn path=/trunk/; revision=7551
      7afe2bb0
    • Dan Winship's avatar
      add a cast to stop a gcc warning · 5360907e
      Dan Winship authored
      	* gdesktopappinfo.c (get_all_desktop_entries_for_mime_type): add a
      	cast to stop a gcc warning
      
      	* gfile.c (g_file_copy_attributes): add parens to stop a gcc
      	warning
      
      svn path=/trunk/; revision=7550
      5360907e
    • Matthias Clasen's avatar
      Bug 553857 – gbacktrace.h requires signal.h · b60040d9
      Matthias Clasen authored
      2008-09-26  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 553857 – gbacktrace.h requires signal.h
      
              * glib/gbacktrace.h: Include signal.h for raise().
              Pointed out by Sebastien Bacher
      
      
      
      svn path=/trunk/; revision=7548
      b60040d9
    • Matthias Clasen's avatar
      Bug 553724 – python interpretter path not patched in correctly · 93d9e7ab
      Matthias Clasen authored
      2008-09-26  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 553724 – python interpretter path not patched in correctly
      
              * glib/Makefile.am: Fix the sed magic to replace python.
      
      
      
      svn path=/trunk/; revision=7546
      93d9e7ab
    • Matthias Clasen's avatar
      Add more docs · 40e192ab
      Matthias Clasen authored
      svn path=/trunk/; revision=7545
      40e192ab
    • Matthias Clasen's avatar
      Move docs · 8d88b840
      Matthias Clasen authored
      svn path=/trunk/; revision=7544
      8d88b840
    • Tor Lillqvist's avatar
      Improve error reporting: When g_module_open() fails, include the name of · 30f2323d
      Tor Lillqvist authored
      2008-09-26  Tor Lillqvist  <tml@novell.com>
      
      	* gmodule-win32.c: Improve error reporting: When g_module_open()
      	fails, include the name of the module passed to LoadLibrary() in
      	what g_module_error() returns.
      
      
      svn path=/trunk/; revision=7543
      30f2323d
  3. 25 Sep, 2008 3 commits
    • Tor Lillqvist's avatar
      Bug 553820 - gpoll.c: undeclared identifier · fc542a46
      Tor Lillqvist authored
      2008-09-25  Tor Lillqvist  <tml@novell.com>
      
      	Bug 553820 - gpoll.c: undeclared identifier
      
      	* glib/gmain.c
      	* glib/gpoll.c: Make the g_poll() function non-static also on
      	Windows. Prefix an underscore to the g_main_poll_debug variable
      	and make it non-static in gmain.c so that it can be used in
      	gpoll.c. Add back missing variable declaration.
      
      
      svn path=/trunk/; revision=7542
      fc542a46
    • Dan Winship's avatar
      Bug 553426 - cancellable clarifications · efce76ce
      Dan Winship authored
      	* gcancellable.c (g_cancellable_class_init): Add a note to the
      	"cancelled" signal docs warning about thread-safety issues
      	(g_cancellable_cancel): Note that cancelling an asynchronous
      	operation takes effect asynchronously, not immediately.
      
      svn path=/trunk/; revision=7541
      efce76ce
    • Tor Lillqvist's avatar
      Just ignore the child_setup function, never call it. The is no situation · 0ed8b94b
      Tor Lillqvist authored
      2008-09-25  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly):
      	Just ignore the child_setup function, never call it. The is no
      	situation in which it could be useful on Windows. Do print a
      	warning, like before.
      
      	* glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
      	in documentation.
      
      
      svn path=/trunk/; revision=7540
      0ed8b94b
  4. 24 Sep, 2008 1 commit
  5. 23 Sep, 2008 5 commits
  6. 22 Sep, 2008 2 commits
  7. 21 Sep, 2008 4 commits
  8. 20 Sep, 2008 1 commit
    • Hans Petter Jansson's avatar
      Rewrite most of GHashTable to use open addressing with quadratic probing · 991b625a
      Hans Petter Jansson authored
      2008-09-19  Hans Petter Jansson  <hpj@novell.com>
      
      	Rewrite most of GHashTable to use open addressing with quadratic
      	probing instead of chaining. This has the potential to reduce memory
      	fragmentation significantly, while being slightly faster due to
      	better locality and no need to call alloc/free functions for nodes.
      	Benchmarks suggest it also uses less memory overall.
      
      	* glib/ghash.c (prime_mod): Table of suitable primes for
      	initial-probe distribution.
      	(g_hash_table_set_shift): New function.
      	(g_hash_table_find_closest_shift): New function.
      	(g_hash_table_set_shift_from_size): New function.
      	(g_hash_table_lookup_node_for_insertion): New function.
      	(g_hash_table_lookup_node): Rewritten to return node index instead of
      	pointer, use quadratic probe on flat table, and not return insertion
      	data. The latter saves some computation for read-only lookups.
      	(g_hash_table_remove_node): Rewrite to take a pointer directly to the
      	node structure to remove, and clear that. Remove unlinking code.
      	(g_hash_table_remove_all_nodes): Rewrite to not clear nodes
      	individually, but en masse using memset () after potentially calling
      	notify functions.
      	(iter_remove_or_steal): Use new data structure and algorithm. Vastly
      	simplified - now just a call to g_hash_table_remove_node ().
      	(g_hash_table_resize): New resize code, re-indexing with new prime
      	and cleaning up tombstones.
      	(g_hash_table_maybe_resize): Table may hold 8 buckets minimum, no less
      	than 1/4 load excluding tombstones, and no more than 15/16 load
      	including tombstones. These numbers are the results of a lot of
      	benchmarking with multiple complex applications, and should not be
      	changed lightly.
      	(g_hash_table_iter_next)
      	(g_hash_table_lookup)
      	(g_hash_table_lookup_extended)
      	(g_hash_table_insert_internal)
      	(g_hash_table_remove_internal)
      	(g_hash_table_foreach_remove_or_steal)
      	(g_hash_table_foreach)
      	(g_hash_table_find)
      	(g_hash_table_get_keys)
      	(g_hash_table_get_values): Use new data structure and algorithm,
      	fairly trivial changes.
      
      
      svn path=/trunk/; revision=7518
      991b625a
  9. 19 Sep, 2008 3 commits
  10. 18 Sep, 2008 2 commits
  11. 17 Sep, 2008 5 commits
  12. 16 Sep, 2008 1 commit