summaryrefslogtreecommitdiff
path: root/gio
Commit message (Collapse)AuthorAgeFilesLines
* Glib::OptionContext: Wrap g_option_context_parse_strv()Kjell Ahlstedt2016-08-141-0/+17
| | | | | | | * gio/src/applicationcommandline.hg: Fix the documentation of get_arguments(), now that g_option_context_parse_strv() has been wrapped. * glib/src/optioncontext.hg: Wrap g_option_context_parse_strv() as parse(char**& argv). Fix the documentation of get_help(bool).
* Add missing objects to glib/gio_extra_objects.defsKjell Ahlstedt2016-08-091-0/+6
| | | | Doesn't change the generated code, but some gmmproc warnings are avoided.
* Gio::SocketService: Update the class documentationKjell Ahlstedt2016-08-061-23/+20
| | | | | | | * gio/src/socketservice.hg: The documentation of GSocketService has been slightly modified. Modify the documentation of Gio::SocketService accordingly. Fix the indentation. Noticed in connection with bug #766151, but not a bug fix.
* Gio::InputStream, OutputStream: Make some of the new methods constKjell Ahlstedt2016-06-022-5/+5
| | | | | | * gio/src/inputstream.hg: is_closed() and has_pending() shall be const. * gio/src/outputstream.hg: is_closed(), is_closing() and has_pending() shall be const. Bug #572471
* Gio::FilterOutputStream: Fix property_base_stream()Krzysztof Kosiński2016-06-021-1/+1
| | | | | | | Change return type from RefPtr<InputStream> to the correct RefPtr<OutputStream>. This change does not break ABI, but it breaks API. That should be acceptable. The property has probably been useless with the wrong declared return type. Part of a large patch, split by Kjell Ahlstedt. Bug #572471
* Wrap some constructors and methods in giomm streamsKjell Ahlstedt2016-06-029-19/+83
| | | | | | | | | | | | | | | | Also, add TODO comments about adding vfuncs at ABI break. * gio/src/bufferedinputstream.hg: TODO: Add fill_vfunc(). * gio/src/filterinputstream.[hg|ccg]: Add ctor. * gio/src/filteroutputstream.[hg|ccg]: Add ctor. * gio/src/inputstream.hg: Add ctor, is_closed(), has_pending(), set_pending(), clear_pending(). TODO: Add read_vfunc(), skip_vfunc(), close_vfunc(). * gio/src/memoryoutputstream.[hg|ccg]: Add ctor and create(). * gio/src/outputstream.hg: Add ctor, is_closed(), is_closing(), has_pending(), set_pending(), clear_pending(). TODO: Add write_vfunc(), splice_vfunc(), flush_vfunc(), close_vfunc(). An updated version of a patch by Krzysztof Kosiński <tweenk.pl@gmail.com> Bug #572471
* Update gio_vfuncs.defsKrzysztof Kosiński2016-06-021-76/+427
| | | | | | | Add vfuncs for GFileInputStream, GFileOutputStream, GInputStream, GOutputStream. Move the vfuncs for GPermission and GListModel to their correct position in alphabetic order. Part of a large patch, split by Kjell Ahlstedt. Bug #572471
* Gio::Pollable[Input|Output]Stream: Return -1 on error in vfuncsKjell Ahlstedt2016-06-022-6/+2
| | | | | | | | | * gio/src/pollableinputstream.hg: read_nonblocking_vfunc_callback(): Return -1 if the C++ vfunc throws an exception. * gio/src/pollableoutputstream.hg: write_nonblocking_vfunc_callback(): Return -1 if the C++ vfunc throws an exception. This is what the glib/gio functions expect, and the behaviour suggested in bug 572471 for similar vfuncs in other stream classes.
* Remove trailing whitespace.Murray Cumming2016-05-1611-28/+28
|
* Gio::SocketAddress: Hand-code create() because the C func does lots.Murray Cumming2016-05-091-3/+6
| | | | | | | | We can only genereate constructors (that are then called by generated create() methods) when the C function just sets its properties, as per the convention with GObject APIs. This C function does far more. Bug #766150 (Vladimir)
* Add Gio::ListModel, ListStoreBase and ListStore<>Kjell Ahlstedt2016-04-277-0/+524
| | | | | | Based on work by Murray Cumming <murrayc@murrayc.com> and Marcin Kolny <marcin.kolny@gmail.com> Bug #755307
* FileAtrributeInfoList, Checksum, Module: Make operator bool explicit.Murray Cumming2016-04-101-1/+1
|
* Gio::DBus::Proxy: allow using GDBusProxy* conversion outside DBus namespaceMarcin Kolny2016-04-051-2/+2
| | | | | | * gio/src/dbusproxy.hg: fix _WRAP_METHOD usage * tools/m4/convert_gio.m4: update converstion definition - use Gio::DBus::Proxy instead of Proxy.
* C++11: .hg\.ccg files: Replace more typedefs with using.Murray Cumming2016-03-313-7/+7
|
* C++11: .h/.cc files: Replace typedefs with using.Murray Cumming2016-03-311-1/+1
|
* C++11: .hg/.ccg files: Replace typedefs with using.Murray Cumming2016-03-3125-65/+65
|
* Regenerate docs.xml files.Murray Cumming2016-03-281-1/+1
|
* Regenerate gio .defs.Murray Cumming2016-03-281-0/+3
|
* Regenerate docs.xml files.Murray Cumming2016-02-291-7/+1116
|
* Regenerate gio .defs.Murray Cumming2016-02-292-1/+305
|
* Run clang-format on the .ccg files.Murray Cumming2016-02-2687-3372/+2585
| | | | This seems to work.
* Run clang-format on the include-all headers.Murray Cumming2016-02-261-8/+8
|
* Re-run clang-format on some files.Murray Cumming2016-02-261-1/+2
| | | | | I need to make a subsequent commit to fix the now-unaligned trailing comments.
* Run clang-format on gio .cc files.Murray Cumming2016-02-264-66/+84
|
* Run clang-format on gio .h files.Murray Cumming2016-02-265-22/+16
|
* Gio::SocketConnectable: Add to_string()Kjell Ahlstedt2016-02-181-3/+2
|
* Gio::Icon: Add serialize(), deserialize() and documentation of create()Kjell Ahlstedt2016-02-181-5/+25
|
* Gio::FileInfo::list_attributes(): Make name_space optional.Murray Cumming2016-02-101-1/+1
| | | | | | Because I noticed that this has just been documented as being allowed to be null: https://git.gnome.org/browse/glib/commit/?id=a4ed89bf75190631087596be22f9eb10dc6e53ef
* C++11: Use emplace_back() instead of push_back().Murray Cumming2016-02-051-3/+3
|
* C++11: Use initializer list instead of push_back() for initial single item.Murray Cumming2016-02-051-8/+4
|
* DBus::Connection: Pass an empty bus name as nullptrKjell Ahlstedt2016-02-042-20/+15
| | | | | | | | | | | | * gio/src/dbusconnection.[hg|ccg]: Some string parameters in some C functions accept nullptr, others don't. call(), call_sync(): bus_name: Pass nullptr for an empty string. emit_signal(): Only destination_bus_name can be nullptr. Other string parameters: Pass c_str(). The bug in call() and call_sync() was noticed by Gerlof Fokkema on gtkmm-list. The bug in emit_signal() is an overreaction to bug 645072. All string parameters were changed to pass nullptr, but only destination_bus_name should have been changed.
* Glib::SignalProxy: use variadic templatesMarcin Kolny2016-01-212-3/+3
| | | | | | | | | | | | | | | * .gitignore: signalproxy.h file is no more generated, so it has been removed from ignored list. * gio/src/application.{ccg|hg}: don't use old-style SignalProxy class. * glib/glibmm/filelist.am: add signalproxy.h file to distributed files list. * gio/glibmm/signalproxy.h: add implementation of SignalProxy and SignalProxyDetailedAnyType. * glib/src/filelist.am: * glib/src/signalproxy.h.m4: signalproxy.h is not generated, thus remove m4 file. * tools/m4/signal.m4: use new SignalProxy class instead of SignalProxy*.
* Use Glib::c_str_or_nullptr()Kjell Ahlstedt2016-01-216-92/+78
| | | | Use Glib::c_str_or_nullptr(s) instead of s.empty() ? nullptr : s.c_str().
* Regenerate .docs.xml files.Murray Cumming2016-01-181-3/+48
|
* C++11: Replace virtual keyword with override keyword on destructors.Murray Cumming2015-12-241-1/+1
| | | | This ensures that the base class is really virtual.
* Fix the build with --disable-deprecated-apiKjell Ahlstedt2015-12-059-2/+18
| | | | | | | | | | | | | | | | * examples/thread/threadpool.cc: If --disable-deprecated-api, just print a message and exit. * gio/src/<several>.hg: Add _CONFIGINCLUDE(giommconfig.h). * gio/src/menuitem.ccg: Add a missing _DEPRECATE_IFDEF_START/_END pair. * glib/glibmm/sarray.h: * glib/glibmm/threadpool.[cc|h]: #include <glibmmconfig.h> before ifndef GLIBMM_DISABLE_DEPRECATED. * glib/src/filelist.am: Remove glibmm_files_deprecated_hg. List deprecated files in glibmm_files_any_hg. The config file must be included before #ifndef xxx_DISABLE_DEPRECATED both in the .h file and in the .cc file, or else deprecated API is not properly disabled by --disable-deprecated-api.
* Gio::ActionMap: Fix the ref count in lookup_action_vfunc()Kjell Ahlstedt2015-12-021-3/+1
| | | | | * gio/src/actionmap.hg: Add refreturn in _WRAP_VFUNC(lookup_action). Bug #758813.
* Gio::Application: Destructor: Use noexcept in the implementation too.Murray Cumming2015-11-291-1/+1
| | | | Bug #758798 (Émeric MASCHINO)
* Use std::unique_lock::unlock() instead of release()Kjell Ahlstedt2015-11-281-19/+19
| | | | | | | * glib/blibmm/main.cc: * gio/src/application.ccg: Glib::Threads::Mutex::Lock::release() should have been replaced by std::unique_lock::unlock(). std::unique_lock::release() does not unlock the mutex. Bug #757674.
* Remove now-unnecessary includes of glibmm/threads.h.Murray Cumming2015-11-271-1/+0
|
* Gio::Application: Use std::mutex instead of Glib::Threads::Mutex.Murray Cumming2015-11-261-5/+5
| | | | | | | And std::unique_lock instead of Glib::Threads::Mutex::Lock. Some of these could probably be replaced by std::lock_guard, in a smaller scope, instead of using release(), but this is a simpler replacement.
* Gio: More nullptr instead of 0Kjell Ahlstedt2015-11-235-13/+9
|
* Regenerate *_docs.xml files.Murray Cumming2015-11-231-58/+576
|
* Regenerate GIO .defs.Murray Cumming2015-11-232-1/+101
|
* Gio: Use of nullptr instead of 0.Murray Cumming2015-11-2029-271/+285
|
* Gio::DBus: Use nullptr instead of 0.Murray Cumming2015-11-207-83/+83
|
* More use of nullptr instead of 0.Murray Cumming2015-11-201-3/+3
|
* Yet more nullptr instead of 0.Murray Cumming2015-11-201-1/+1
|
* More use of nullptr instead of 0.Murray Cumming2015-11-207-19/+19
|
* Mention nullptr instead of NULL in documentation and some comments.Murray Cumming2015-11-208-9/+9
|