summaryrefslogtreecommitdiff
path: root/gio
Commit message (Collapse)AuthorAgeFilesLines
* GIOScheduler: Use a GList, not GSList for jobswip/async-io-perfColin Walters2012-06-211-8/+8
| | | | | | | | | In general, code using g_slist_delete_link() is broken, because it potentially requires an O(n) traversal. Just switch to GList in this case. The performance hit here was exacerbated by the fact that we were holding a mutex that needed to be accessed by all threads.
* GIOScheduler: Avoid constant iteration over pending job listColin Walters2012-06-211-26/+15
| | | | | | The iteration over the list (while holding a mutex) was a serious performance hit for asynchronous I/O. We can just use g_cancellable_connect().
* Update to use XDG cache home for thumbnailsWilliam Jon McCann2012-06-131-4/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=675168
* glib-compile-resources: Forward errors from spawned processesBenjamin Otte2012-06-131-10/+12
| | | | | We just grab stderr from gdk-pixbuf-to-csource and xmllint and include it in the error message. It's the best we can do.
* update .gitignoreDan Winship2012-06-121-0/+1
|
* gunixoutputstream: add missing can_poll() implementationDan Winship2012-06-121-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=677770
* Remove trailing commas from enumsMurray Cumming2012-06-121-1/+1
|
* GDBusProxy: Treat org.freedesktop.systemd1.Masked error as non-fatalDavid Zeuthen2012-06-081-8/+26
| | | | | | | | | This is useful otherwise we'll fail if a systemd service is masked. See bug 677718 for details. https://bugzilla.gnome.org/show_bug.cgi?id=677718 Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* gdbus: Implement g_dbus_connection_get_last_serial()Tomas Bzatek2012-06-064-0/+144
| | | | | | | This patch brings an ability to retrieve serial number of the last message sent within the current thread. https://bugzilla.gnome.org/show_bug.cgi?id=676825
* Pass -framework sub-flag without embedded whitespaceDaniel Macks2012-06-051-1/+1
| | | | | | | | | The "-framework" linker flag takes a second word as a parameter. If they are passed separated with whitespace, some flag-handling routines may not know to keep the two words together as a single unit. Use -Wl,, to pass multiple words without embedded whitespace. https://bugzilla.gnome.org/show_bug.cgi?id=566994
* g_dbus_gvariant_to_gvalue(): Add missing out annotationMartin Pitt2012-06-051-1/+1
|
* Improve GResource test coverageMatthias Clasen2012-06-041-3/+109
|
* Improve GSocketAddress test coverageMatthias Clasen2012-06-041-2/+18
|
* Improve GNetworkMonitor test coverageMatthias Clasen2012-06-041-47/+103
|
* Improve GIcon test coverageMatthias Clasen2012-06-041-0/+6
|
* Formatting cleanupsMatthias Clasen2012-06-041-47/+49
|
* Improve GMenu test coverageMatthias Clasen2012-06-041-7/+57
|
* Improve GApplication test coverageMatthias Clasen2012-06-042-2/+44
|
* Improve GActionGroup test coverageMatthias Clasen2012-06-041-11/+123
|
* Improve GIcon test coverageMatthias Clasen2012-06-041-0/+9
|
* Expand GAppInfo testsMatthias Clasen2012-06-041-0/+15
|
* GConverterInputStream: fix an edge caseDan Winship2012-05-302-0/+164
| | | | | | | | | | | | | | | | | | | | | Reading from a GConverterInputStream with both input_buffer and converted_buffer non-empty would return bogus data (the data from converted_buffer would essentially get skipped over, though the returned nread reflected what the count would be if it hadn't been). This was never noticed before because (a) it can't happen if all of your reads are at least as large as either the internal buffer size or the remaining length of the stream (which covers most real-world use), and (b) it can't happen if all of your reads are 1 byte (which covers most of tests/converter-test). (And (c) it only happens for some converters/input streams.) But this was happening occasionally in libsoup when content-sniffing a gzipped response, because the SoupContentSnifferStream would first read 512 bytes (to sniff), and then pass through larger reads after that. Fixed and added a test to converter-test. https://bugzilla.gnome.org/show_bug.cgi?id=676478
* build: Add missing AM_V_GEN to silence the buildChristian Persch2012-05-291-1/+1
|
* application: Add dbus register/unregister hooksChristian Persch2012-05-295-2/+162
| | | | | | | | | | When the application is using its D-Bus backend, it is useful to be able to export extra D-Bus objects at the right time, i.e. *before* the application tries to own the bus name. This is accomplished here by adding a hook in GApplicationClass for this; and a corresponding hook that will be called on unregistration to undo whatever the register hook did. Bug #675509.
* gappinfo: Fix uninitialized-variable gcc warningColin Walters2012-05-261-1/+1
|
* Annotate API introduced for 2.34 with GLIB_AVAILABLE_IN_2_34Colin Walters2012-05-262-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676816
* Annotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32Colin Walters2012-05-2626-2/+78
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676816
* Annotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30Colin Walters2012-05-263-0/+6
| | | | | | | | | | | | I didn't do this comprehensively, since there's a lot of it, mainly due to the GDBus object manager stuff, but anyone trying to use that would fail fast due to lack of the gdbus code generator. My main goal was to get API additions to existing classes like g_data_input_stream_read_line_utf8(), as well as the lower level new API like glib-unix.h. https://bugzilla.gnome.org/show_bug.cgi?id=676816
* gio: fix symbol nameMarc-Antoine Perennou2012-05-261-1/+1
| | | | Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* gio: add GBytes-based input/output stream methodsDan Winship2012-05-247-0/+422
| | | | | | | | | | | | | Using a caller-supplied buffer for g_input_stream_read() doesn't translate well to the semantics of many other languages, and using a non-refcounted buffer for read_async() and write_async() makes it impossible to manage the memory correctly currently in garbage-collected languages. Fix both of these issues by adding a new set of methods that work with GBytes objects rather than plain buffers. https://bugzilla.gnome.org/show_bug.cgi?id=671139
* Revert "application: Don't print a critical warning here"Christian Persch2012-05-241-1/+1
| | | | This reverts commit 1541478bac6fed26bcb77ebae5e50bb7a76954f7.
* application: Save a few bytes in the libraryChristian Persch2012-05-241-24/+24
| | | | There's really no need to put useless whitespace into the .so.
* application: Don't print a critical warning hereChristian Persch2012-05-241-1/+1
| | | | It's a runtime error, not a programming error.
* GMemoryOutputStream: Add API to return data as a GBytesColin Walters2012-05-214-0/+70
| | | | | | Matches the corresponding additions to GMemoryInputStream. https://bugzilla.gnome.org/show_bug.cgi?id=672102
* GMemoryInputStream: Add API to accept GBytesColin Walters2012-05-213-39/+76
| | | | | | | And s/Chunk/GBytes/ internally. GBytes is really a perfect match for GMemoryInputStream. https://bugzilla.gnome.org/show_bug.cgi?id=672102
* gio: The tmpl parameter to g_file_new_tmp can be NULLDebarshi Ray2012-05-211-1/+0
| | | | Fixes: https://bugzilla.gnome.org/676208
* proxy-test: work even when the upstream DNS liesDan Winship2012-05-181-0/+60
| | | | | | Rather than depending on the host's DNS configuration to properly return an error for a non-existent hostname, just substitute in a dummy GResolver implementation that does it for us.
* g_app_info_launch_default_for_uri: don't use GFile if we don't have toDan Winship2012-05-181-10/+26
| | | | | | | | | GFile doesn't handle some "real" URIs, so check if there's a default handler for the URI scheme first, and only use g_file_new_for_uri() and g_file_query_default_handler() if not. Eg, this fixes the case of opening http URIs with "%2F" in the path. https://bugzilla.gnome.org/show_bug.cgi?id=666386
* Document that g_app_info_create_from_commandline() does unquoting according ↵Holger Berndt2012-05-181-0/+6
| | | | | | to fd.o https://bugzilla.gnome.org/show_bug.cgi?id=676277
* gnetworkmonitornetlink: don't leak the list of networksDan Winship2012-05-171-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676265
* gsettings: add reset-recursively to bash completionMatthias Clasen2012-05-171-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=675832
* update .gitignoreDan Winship2012-05-161-0/+1
|
* GAppInfo: add a mechanism to query supported content typesGiovanni Campagna2012-05-166-0/+66
| | | | | | | | | This essentially adds an accessor for the MimeType field in desktop files, to retrieve the list of all mime types supported by an application. The interface though is part of GAppInfo, so it could be implemented in the future by other backends. https://bugzilla.gnome.org/show_bug.cgi?id=674111
* Add g_type_ensure() and use it rather than playing games with volatileDan Winship2012-05-158-49/+31
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=605976
* gfile: add g_return_if_fail to g_file_make_directory_with_parents()Paolo Borelli2012-05-151-0/+2
|
* gfile: Plug memory leak in g_file_make_directory_with_parents()Colin Walters2012-05-151-7/+16
| | | | | | | | | The logic here is pretty twisted, but basically we were leaking a ref for each non-existent parent. The clearest way to fix this was to move to more explicit refcounting logic; when a variable is pointing to an object, it holds a ref. https://bugzilla.gnome.org/show_bug.cgi?id=675446
* docs: reference g_menu_item_new in gmenu convenience menuitem APILars Uebernickel2012-05-101-3/+3
|
* application: Clarification about 'primary instance'Christian Persch2012-05-021-2/+3
| | | | | For non-unique applications, the 'primary instance' is the current instance.
* tests: temporarily disable GDBus async proxy testRyan Lortie2012-05-011-0/+2
| | | | | | | It has never worked properly and, with the new GDBus testing stuff, it's occasionally failing. https://bugzilla.gnome.org/show_bug.cgi?id=672248
* contenttype test: don't pass -1 as lengthRyan Lortie2012-05-011-5/+6
| | | | | g_content_type_guess() takes a gsize, not a gssize, and -1 does not mean "I am passing a NULL terminated string".