summaryrefslogtreecommitdiff
path: root/gio/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove Glib::TimeValKjell Ahlstedt2019-08-132-12/+3
| | | | | | | | | | | | | | | | | | GTimeVal has been deprecated in glib. Remove its wrapping in glibmm. * examples/dbus/server_without_bus.cc: * examples/dbus/session_bus_service.cc: Replace TimeVal by DateTime. * gio/src/fileinfo.[ccg|hg]: Remove [set_]modification_time(). Add set/get_modification_date_time(). * glib/glibmm.h: * glib/glibmm/filelist.am: Remove timeval. * glib/glibmm/timeval.[cc|h]: Removed files. * glib/src/date.[ccg|hg]: Remove set_time(const GTimeVal& timeval). * glib/src/datetime.[ccg|hg]: Remove create_now_local/utc(const TimeVal& tv) and to_timeval(). Add create_from_iso8601(), format_iso8601() and operator bool(). * tools/m4/convert_glib.m4: * tools/m4/convert_gio.m4: Remove conversions for GTimeVal.
* Glib, Gio: Regenerate docs.xml and .defs filesKjell Ahlstedt2019-08-132-14/+60
|
* Gio: Fix ownership of some lists and arraysKjell Ahlstedt2019-07-216-23/+50
| | | | | | | | | | | * gio/src/drive.hg: get_volumes(): Glib::OWNERSHIP_SHALLOW -> DEEP * gio/src/mountoperation.hg: signal_ask_question(): DEEP -> NONE A signal handler shall not deallocate its input data. * gio/src/themedicon.hg: get_names(): DEEP -> NONE * gio/src/tlsdatabase.[ccg|hg]: lookup_certificates_issued_by[_finish]_vfunc(): g_list_copy() -> g_list_copy_deep() * gio/src/volumemonitor.hg: get_connected_drives(), get_volumes(), get_mounts(): SHALLOW -> DEEP
* Add Gio::DBus::ObjectManager*Kjell Ahlstedt2019-07-189-0/+793
| | | | | Add Gio::DBus::ObjectManager, Gio::DBus::ObjectManagerClient and Gio::DBus::ObjectManagerServer. Fixes #43
* Gio::DBus::Object::get_interface_vfunc(): Don't add global symbolKjell Ahlstedt2019-07-172-7/+7
| | | | | | The previous fix of Gio::DBus::Object vfuncs added a Glib::unwrap_copy() overload, which became a global symbol in the load module. Replace it with a local name in an anonymous namespace.
* Add Gio::DBus::ObjectProxy and Gio::DBus::ObjectSkeletonKjell Ahlstedt2019-07-175-0/+190
| | | | | In preparation for adding Gio::DBus::ObjectManager, ObjectManagerClient and ObjectManagerServer. See issue #43.
* Glib, Gio: Regenerate docs.xml and .defs filesKjell Ahlstedt2019-07-175-96/+438
| | | | and update gio_signals.defs.patch and generate_defs_gio.cc.
* Gio::DBus::Object: Fix refcounts in some vfuncsKjell Ahlstedt2019-07-162-9/+25
| | | | | | | Gio::DBus::Object::get_interface_vfunc() and get_interfaces_vfunc() must add a reference to the returned DBus interfaces. The caller shall unref them. g_dbus_object_get_interface() and g_dbus_object_get_interfaces() are marked (transfer full).
* Gio::Application: Add add_option_group()Kjell Ahlstedt2019-06-231-4/+33
| | | | Fixes #46
* Put _WRAP_VFUNC in protected sectionsKjell Ahlstedt2019-03-1525-9/+28
|
* Gio: Add some API (AppInfo::launch_uris_async() etc.)Kjell Ahlstedt2019-03-154-7/+23
| | | | | | | | * gio/src/appinfo.hg: Add launch_uris_async() and launch_uris_async(). * gio/src/asyncresult.hg: _IGNORE g_async_result_legacy_propagate_error(). * gio/src/datainputstream.hg: _IGNORE deprecated methods. * gio/src/dbusconnection.hg: Add get/property_flags(). * tools/m4/convert_gio.m4: Add conversions for GDBusConnectionFlags.
* Glib, Gio: Regenerate .defs and docs.xml filesKjell Ahlstedt2019-03-154-25/+1840
|
* Glib::KeyFile: Make it a _CLASS_OPAQUE_REFCOUNTEDKjell Ahlstedt2019-02-021-1/+1
| | | | | | | | | | * examples/keyfile/main.cc: * gio/src/desktopappinfo.hg: Store KeyFile in a RefPtr. * glib/src/keyfile.[ccg|hg]: Replace _CLASS_GENERIC by _CLASS_OPAQUE_REFCOUNTED. Remove handcoded methods that are now generated by gmmproc. * tools/m4/convert_glib.m4: Update conversion for KeyFile. GKeyFile is refcounted since 2009.
* Glib, Gio: Use _IS_REFCOUNTED_BOXEDTYPE where appropriateKjell Ahlstedt2019-01-302-0/+2
| | | | | | | | | * gio/src/dbusintrospection.hg: Add _IS_REFCOUNTED_BOXEDTYPE to Gio::DBus::InterfaceInfo which is used in _WRAP_PROPERTY in Gio::DBus::Proxy. * gio/src/settingsschema.hg: Add _IS_REFCOUNTED_BOXEDTYPE. SettingsSchema is used in _WRAP_PROPERTY in Gio::Settings. * glib/src/bytearray.[ccg|hg]: Replace the hand-coded Value specialization with _IS_REFCOUNTED_BOXEDTYPE.
* Gio::UnixSocketAddress: ByteArray is in namespace Glib, not in GioKjell Ahlstedt2019-01-281-3/+5
|
* Gio::TlsClientConnection: Remove property_accepted_cas()Kjell Ahlstedt2019-01-281-2/+3
| | | | | It does not work because there is no suitable Glib::Value<T> specialization. get_accepted_cas() can be used instead.
* Gio::ThemedIcon: Add create(const std::vector<Glib::ustring>& iconnames)Kjell Ahlstedt2019-01-272-6/+26
| | | | | | | And change the type of icon names to Glib::ustring in methods where it was std::string. Gtkmm consistently uses Glib::ustring for icon names, but Gio::ThemedIcon has been inconsistent. (The string returned by Gio::Icon::to_string() is not an icon name. It shall remain a std::string.)
* Gio::AsyncResult: Explain why wrap() is not used in get_source_object_base()Kjell Ahlstedt2019-01-251-1/+5
| | | | | | * gio/src/asyncresult.ccg: Replace a TODO comment with an explanation. * tests/giomm_asyncresult_sourceobject/main.cc: Add code that demonstrates why Glib::wrap(GObject* object, bool take_copy) returns an empty RefPtr.
* Gio::SocketAddress: Fix property_family()Kjell Ahlstedt2019-01-181-1/+1
| | | | Gio::SocketFamily is an enum. It shall not be stored in a Glib::RefPtr.
* Merge branch 'func-arg-init' into 'master'Kjell Ahlstedt2019-01-1411-78/+78
|\ | | | | | | | | Use {} for function arguments initialisation See merge request GNOME/glibmm!9
| * Use {} for function arguments initialisationTapasweni Pathak2019-01-1311-78/+78
| | | | | | | | Closes https://gitlab.gnome.org/GNOME/glibmm/issues/20.
* | Gio: Remove NO_GTYPE from some _WRAP_ENUMsKjell Ahlstedt2019-01-078-9/+9
|/ | | | | | NO_GTYPE can't be used in _WRAP_ENUM if the enum is used in _WRAP_PROPERTY. The error is noticed only during execution of code that calls the generated property_*() method. Fixes #37
* Gio::TlsConnection: Remove rehandshake APIKjell Ahlstedt2018-12-061-8/+3
| | | | | | | * gio/src/tlsconnection.hg: Remove set/get/property_rehandshake_mode() and enum Gio::TlsRehandshakeMode. Their equivalents in glib have been deprecated. * tools/m4/convert_gio.m4: Remove conversions for GTlsRehandshakeMode.
* Gio::Application: Add signal_name_lost()Kjell Ahlstedt2018-12-061-2/+2
|
* Gio: Regenerate .defs and docs.xml filesKjell Ahlstedt2018-12-063-30/+105
|
* Glib, Gio: Regenerate .defs and docs.xml filesKjell Ahlstedt2018-10-315-5050/+611
| | | | and update gio_docs_override.xml.
* AsyncResult: Fix grammar error, <tt>ify enumeratorDaniel Boles2018-10-071-1/+1
| | | | | This was not a grammar error before C++ification! But let’s fix it anyway, and give the enumeration name some nice formatting as well.
* Fix reference documentation generationChun-wei Fan2018-09-101-1/+1
| | | | | | | | | * docs/Makefile.am: Include the filelist.gmake.am files if applicable * glib/glibmm/filelist.gmake.am: * gio/src/filelist.gmake.am: * gio/giomm/filelist.gmake.am: Include filelist.am relative from $(top_srcdir) as we are including the filelist.gmake.am's from docs/ as well.
* glibmm, giomm: Split out GNU automake items from filelist.amChun-wei Fan2018-09-073-18/+21
| | | | | | This enables the filelist.am files to be shared with the NMake Makefiles, so that any addition/removal to the sources can be reflected in the Visual Studio build files as well.
* SocketClient: Take copy in RefPtrs for signal argsDaniel Boles2018-07-011-2/+2
| | | | | | | Without doing so, the C++ arguments take ownership of the C GObjects passed to the handler, so both go out of scope on exiting the handler. https://gitlab.gnome.org/GNOME/glibmm/issues/28
* AsyncResult: Bin obsolete docs re: initing GThreadDaniel Boles2018-05-201-3/+0
| | | | | | | | As the GLib Threads documentation states: “Since version 2.32, the GLib threading system is automatically initialized at the start of your program, and all thread-creation functions and synchronization primitives are available right away.”
* Update some @newin commandsKjell Ahlstedt2018-04-263-11/+11
| | | | | | API which is new in the future ABI-breaking release is newin{2,58}, but this might change again in the future. glibmm-2.58 is still just a preliminary name of this ABI. Bug 789330
* Gio::DesktopAppInfo: Add get_locale_string()Kjell Ahlstedt2018-03-311-1/+2
|
* Gio::Application: Add set_option_context_*()Kjell Ahlstedt2018-03-311-0/+4
| | | | | Add set_option_context_parameter_string(), set_option_context_summary(), set_option_context_description().
* Glib, Gio: Regenerate docs.xml and .defs filesKjell Ahlstedt2018-03-263-54/+321
|
* Gio::DataOutputStream::put_string(): Don't pass std:string by valueKjell Ahlstedt2018-03-011-1/+1
|
* Gio::DataInputStream: Remove read_until*()Kjell Ahlstedt2018-02-152-153/+4
| | | | | g_data_input_stream_read_until(), _read_until_async() and _read_until_finish() have been deprecated.
* Gio::TlsClientConnection: Remove get/set/property_use_ssl3()Kjell Ahlstedt2018-01-121-3/+2
| | | | The corresponding glib functions and property have been deprecated.
* Gio::InetSocketAddress, ProxyAddress: No guint16 in _WRAP_PROPERTY()Kjell Ahlstedt2017-12-132-8/+11
| | | | | | | * gio/src/inetsocketaddress.hg: * gio/src/proxyaddress.hg: Don't use guint16 or guint32 in _WRAP_PROPERTY(). There are no Glib::Value<> specializations for those types. Use guint which is a typedef of unsigned int.
* Fix some TODO commentsKjell Ahlstedt2017-12-136-15/+29
| | | | | | | | | | | | | | | | | | | * gio/src/actionmap.ccg: Use the Glib::VariantBase::cast_dynamic<>() syntax for calling the static member function. * gio/src/emblemedicon.hg: Add a const version of get_emblems(). * gio/src/networkmonitor.hg: Add class documentation. * gio/src/tlsclientconnection.hg: * gio/src/tlsfiledatabase.hg: * gio/src/tlsserverconnection.hg: Remove "TODO:" from some comments where there's really nothing to do. * glib/src/miscutils.ccg: get_system_data_dirs(), get_system_config_dirs(): Use Glib::ArrayHandler<std::string>::array_to_vector(). * glib/src/optioncontext.hg: Make it explicit that OptionContext is not copyable. * glib/src/varianttype.hg: Rename _get_string_length() to get_string_length(). The leading underscore looks like a mistake. Remove the comment "Use something instead of gsize?" gsize is used in many methods in glibmm and gtkmm.
* Gio::AppInfo: Update the name of the AppLaunchContext parametersKjell Ahlstedt2017-12-111-14/+14
|
* Glib, Gio: Regenerate docs.xml and .defs filesKjell Ahlstedt2017-12-114-136/+2070
| | | | | | | | * glib/src/glib_docs_override.xml: Add some <substitute_enumerator_name> elements. * tools/extra_defs_gen/generate_defs_gio.cc: Add an initial call to get_defs(G_TYPE_APPLICATION) to make sure the first call to get_defs() requests info on a GObject, not a GInterface.
* Gio::Credentials, et al.: Add exception specs to errthrowKjell Ahlstedt2017-10-077-38/+24
|
* Gio::Action: Add exception specs to errthrowKjell Ahlstedt2017-09-291-1/+1
|
* Gio::Application::custom_class_init(): Update a commentKjell Ahlstedt2017-09-272-6/+6
| | | | | The private custom_class_init() method is still needed, but the reason is no longer that the deprecated g_type_init() must be called.
* Gio::Settings: set_int() and friends shall return boolKjell Ahlstedt2017-09-241-7/+7
| | | | | | g_settings_set_int(), g_settings_set_int64() etc. return a gboolean that shows if the operation has successed. Let Gio::Settings::set_int() etc. return a bool.
* Gio::DataInputStream: Fix the documentation of read_line_utf8()Kjell Ahlstedt2017-09-241-19/+42
| | | | | | | Hand-code the documentation of read_line_utf8() and read_line_finish_utf8(). Use Glib::convert_return_gchar_ptr_to_stdstring() to set the output parameter. It handles the case when the char* is NULL. Minor fixes in the documentation of several other methods.
* Gio::ActionGroup, Settings: Add detail_name to some _WRAP_SIGNAL()sKjell Ahlstedt2017-09-122-5/+5
| | | | | | | * gio/src/actiongroup.hg: signal_action_added(), signal_action_removed(), signal_action_enabled_changed() and signal_action_state_changed() accept an 'action_name' parameter. * gio/src/settings.hg: signal_writable_changed() accepts a 'key' parameter.
* Regenerate gio_signals.defs and gio_signals.defs.patchKjell Ahlstedt2017-09-122-86/+94
|
* Gio::Application: Fix property_resource_base_path()'s typeKjell Ahlstedt2017-09-091-1/+1
| | | | | The property_resource_base_path()'s type shall be std::string, like the type of set/get_resource_base_path().