summaryrefslogtreecommitdiff
path: root/gio
Commit message (Collapse)AuthorAgeFilesLines
* giomm: Add some unwrapped methods and properties.José Alburquerque2011-10-267-0/+11
| | | | | | | | | | | * gio/src/drive.hg: Add get_sort_key(). * gio/src/emblemedicon.hg: Add clear_emblems(). * gio/src/fileicon.hg: Add the "file" property. * gio/src/inetaddress.hg: Add address_equal(). * gio/src/mount.hg: Add get_sort_key(). * gio/src/socket.hg: Add the "timeout" property. * gio/src/socketaddress.hg: Add the "family" property. * tools/m4/convert_gio.m4: Add a necessary conversion.
* Avoid some deprecation compiler warnings.Murray Cumming2011-10-262-0/+2
| | | | | | | | | | * gio/src/file.hg: * gio/src/volumemonitor.hg: * glib/src/date.hg: Add GLIB_DISABLE_DEPRECATION_WARNINGS to SECTION_CC_PRE_INCLUDES to avoid compiler warnings with the new glib deprecation system. * glib/src/value_basictypes.cc.m4: undef them here too, because g_value_set_char() and g_value_get_char() are deprecated.
* giomm/wrap_init.h: Remove the glibmm.h include from here too.Murray Cumming2011-10-252-0/+3
| | | | | * gio/giomm/wrap_init.[h|cc]: Move the #include into the .cc file. * gio/giomm.h: Add an #include glibmm.h here instead.
* giomm/wrap_init.h: Remove the glibmm.h include from here too.Murray Cumming2011-10-251-3/+1
| | | | * gio/giomm/wrap_init.h: The #include does not seem necessary at all.
* gmmproc: Don't include <glibmm.h> by default in generated files.José Alburquerque2011-10-2573-2/+123
| | | | | | | | | | | | * tools/m4/base.m4: Include <glibmm/ustring.h> and <sigc++/sigc++.h> by default in header files of generated files in modules other than glibmm. This should make compilation faster for those modules. * gio/src/*.{h,cc}g: * gio/giomm/slot_async.cc: Adjust includes according to the above change. Bug #662597
* Regenerated more defs.Murray Cumming2011-10-252-153/+277
| | | | | | | | | * gio/src/gio_enums.defs: Regenerated with enums.pl. * gio/src/gio_methods.defs: Regenerated with h2defs.py. * glib/src/glib_functions.defs: * glib/src/gobject_functions.defs: Regenereated with h2defs.py * glib/src/glib_deprecated_functions.defs: Added this file. * glib/src/glib.defs: Mention the new file.
* Fix the make check build by always linking to gthread-2.0.Murray Cumming2011-10-251-1/+1
| | | | | | | | | | | | | * configure.ac: Always use gthread-2.0 because there is now no advantage to not doing that, because threading is now always enabled in glib. Remove the separate GTHREAD* variables. * glib/glibmm/Makefile.am: * gio/giomm/Makefile.am: * tests/Makefile.am: * tools/Makefile.am: * examples/Makefile.am: Remove use of the GTHREAD* variables.. * examples/network/resolver.cc: Remove the non-threading option and code that uses it.
* Gio::DBus::Connection: Temporarily remove newly added call() methods.José Alburquerque2011-10-235-2/+13
| | | | | | | | | | * gio/src/dbusconnection.{ccg,hg}: Remove the newly added call() methods with a UnixFDList parameter until the call_finish() method with a UnixFDList parameter is added also. * gio/src/credentials.hg: * gio/src/dbusmessage.ccg: * gio/src/dbusmessage.hg: Typos.
* Gio::DBus::Connection: Correct UnixFDList class forward declaration.José Alburquerque2011-10-131-4/+3
| | | | | | | | * gio/src/dbusconnection.hg: Place the class declaration in the Gio namespace and not in the Gio::DBus namespace which is incorrect to fix the build. There was a '-Werror' option in the CXXFLAGS variable of my ~/.jhbuildrc file which was causing deprecation warnings to break the build so I did not verify the previous to last commit, sorry.
* DBusMethodInvocation: Add UnixFDList return_value() method overload.José Alburquerque2011-10-132-0/+8
| | | | | * gio/src/dbusmethodinvocation.hg: Add the method overload. * gio/src/dbusmessage.hg: Add an _IGNORE.
* Gio::DBus::Connection: Add UnixFDList call() method overloads.José Alburquerque2011-10-122-8/+145
| | | | | * gio/src/dbusconnection.{ccg,hg}: Add cancellable and non-cancellable UnixFDList call() methods.
* DataInputStream: Add read_line_utf8() and read_line_finish_utf8().José Alburquerque2011-10-111-0/+9
| | | | | | | | | * gio/src/datainputstream.hg: Add the two methods and their overloads using the new gmmproc parameter reordering, optional parameter signaling and output parameter signaling functionality. It's not difficult to write the _INITIALIZATION and _WRAP_METHOD macros but they may not be readily understandable. I think they are, but I could be wrong.
* ApplicationCommandLine: Add the get_platform_data() method.José Alburquerque2011-10-111-7/+3
| | | | * gio/src/applicationcommandline.hg:
* SimpleAction: Wrap the signals and properties.José Alburquerque2011-10-101-9/+2
| | | | | | | * gio/src/simpleaction.hg: Wrap the signals using the no_default_handler option because there are no signal members exposed in the GSimpleActionClass struct (in fact, there is no GSimpleActionClass struct). Also wrap the properties.
* Application, {,Simple}Action{,Group}: Update @newins{}'s.José Alburquerque2011-10-105-7/+8
| | | | | | | | | * gio/src/action.hg: * gio/src/application.hg: * gio/src/simpleaction.hg: * gio/src/simpleactiongroup.hg: * gio/src/applicationcommandline.hg: Add bug URL to a TODO.
* ApplicationCommandLine: Update a TODO.José Alburquerque2011-10-101-2/+5
| | | | * gio/src/applicationcommandline.hg:
* Re-add Application and related class so they can be finished.José Alburquerque2011-10-0914-0/+993
| | | | | | | | | | | | | | | | | * gio/giomm.h: * gio/src/action.ccg: * gio/src/action.hg: * gio/src/actiongroup.ccg: * gio/src/actiongroup.hg: * gio/src/application.ccg: * gio/src/application.hg: * gio/src/applicationcommandline.ccg: * gio/src/applicationcommandline.hg: * gio/src/filelist.am: * gio/src/simpleaction.ccg: * gio/src/simpleaction.hg: * gio/src/simpleactiongroup.ccg: * gio/src/simpleactiongroup.hg:
* 2.30.02.30.0Murray Cumming2011-09-271-3/+3
|
* Gio::DBus::Server: Add constructors.Murray Cumming2011-09-272-10/+4
| | | | | * gio/src/dbusserver.[hg|ccg]: Uncomment the constructors now that bug #639478 has been fixed, though nobody has tried to use this yet.
* Regenerated .defs files.Murray Cumming2011-09-271-1215/+0
| | | | | | | | | * glib/src/glib_functions.defs: * glib/src/gobject_functions.defs: * glib/src/gmodule_functions.defs: * gio/src/gio_functions.defs: Regenerated with h2defs.py, though see bug #660225 . * glib/src/datetime.hg: Added an m4 conversion that is now necessary.
* Remove Application and friends, because they are still not ready.Murray Cumming2011-09-2614-990/+0
| | | | | | | | | | | | * gio/src/action.[hg|ccg]: * gio/src/actiongroup..[hg|ccg]: * gio/src/application.[hg|ccg]: * gio/src/applicationcommandline..[hg|ccg]: * gio/src/simpleaction..[hg|ccg]: * gio/src/simpleactiongroup.[hg|ccg]: Removed. * gio/src/filelist.am: * goi/giomm.h: Do not mention them. See bug #637445#c29
* Action, ActionGroup: Wrap virtual functions.José Alburquerque2011-09-223-2/+156
| | | | | | | | * gio/src/gio_vfuncs.defs: Add virtual function definitions for the Action and ActionGroup classes. * gio/src/action.hg: * gio/src/actiongroup.hg: Wrap the virtual functions. * tools/m4/convert_gio.m4: Correct a VariantType return conversion.
* giomm: Add SimpleActionGroup.José Alburquerque2011-09-224-1/+81
| | | | | | | | * gio/src/simpleactiongroup.{ccg,hg}: * gio/src/filelist.am: Add sources and include them in the build file list. * tools/m4/convert_gio.m4: Add necessary conversions. * gio/src/simpleaction.hg: Added class doc title.
* SimpleAction: Add create() methods.José Alburquerque2011-09-211-0/+8
| | | | | | * gio/src/simpleaction.hg: Add two forgotten create methods for the class. Also filed bug #659783 about not being able to wrap the signals.
* giomm: Add SimpleAction, an implementation of the Action interface.José Alburquerque2011-09-214-2/+164
| | | | | | | | | | | | * gio/src/simpleaction.{ccg,hg}: * gio/src/filelist.am: Add the sources and include them in the list of files that should be processed. * tools/extra_defs_gen/generate_defs_gio.cc: Add G_SIMPLE_ACTION_TYPE to the list of types for which properties and signals should be generated. * gio/src/gio_signals.defs: Regenerate with above to get the properties and signals of new class.
* ActionGroup: Wrap remaining methods.José Alburquerque2011-09-201-6/+5
| | | | | | * gio/src/actiongroup.hg: Add the get_action_parameter_type(), get_action_state_type(), get_action_state_hint(), and get_action_state() methods which were TODO's.
* giomm: Add Action class wrapping GAction.José Alburquerque2011-09-206-546/+878
| | | | | | | | | | | | | | | | | | | | | | | | * gio/src/action.{ccg,hg}: * gio/src/filelist.am: Add the new sources wrapping the methods and signals of GAction and include them in the list of files to be built. * tools/extra_defs_gen/generate_defs_gio.cc: Add G_TYPE_ACTION to the list of types for which signals and properties should be generated. * gio/src/gio_signals.defs: * gio/src/gio_methods.defs: Regenerate to get the new methods and properties being wrapped. * gio/src/gio_extra_objects.defs: Add Action to the list of extra objects so gmmproc's documentation generation does not produce warnings because of it. Also added DBusNodeInfo and Proxy. * tools/m4/convert_gio.m4: Alphabetized the conversion by groups pertaining to types. Removed the Variant return conversions which take copies. * glib/src/variant.hg: Moved the conversions here because they are specific to the methods in this class, specifically get_child() and get().
* TimeZoneMonitor: Remove as was done in glib.José Alburquerque2011-08-223-74/+0
| | | | | | | | | | | | | | * gio/src/filelist.am: * gio/src/timezonemonitor.{ccg,hg}: Remove sources and the mention from the build. * glib/src/timezone.hg (refresh_local): Remove this method as the function that it wraps was also removed from glib. * tools/extra_defs_gen/generate_defs_gio.cc (G_TYPE_TIME_ZONE_MONITOR): Remove this GType from the list of types for which properties and signals are generated. See the glib commit: http://git.gnome.org/browse/glib/commit/?id=5b68b49b2072c371c72ee96175e3d6a727eb5e8b
* giomm: Application: local_command_line_vfunc(): Use references for parameters.Murray Cumming2011-08-031-3/+3
| | | | | * gio/src/application.hg: Use references instead of pointers, now that we know how these paramters are actually used. See bug #643478.
* Add back Gio::Application and friends so we can try to finish them.Murray Cumming2011-08-038-0/+658
| | | | This reverts commit c446268b44f3595431ba6f535dc297557c6097e0.
* AppInfo: Add launch() taking one file, and launch_uri() taking one URI.Murray Cumming2011-07-192-1/+132
| | | | | | * gio/src/appinfo.[hg|ccg]: Add launch() overloads that take a single Gio::File, for convenience. Also add launch_uri() to take a single URI.
* AppInfo::launch(): Correct the parameter type.Murray Cumming2011-07-121-5/+7
| | | | | | | | | | | | * gio/src/appinfo.hg: g_app_info_launch() takes a GList of GFile, not of strings. Also use a vector instead of a ListHandle, as per our new convention. It is acceptable to change this API/ABI because this method could never possibly have been used by any application without crashes, so this can't make anything worse. Also add an overload without the launch_context parameter, using the new {?} syntax. Luckily we did not implement the vfuncs, or maybe we disabled them because of the crashes.
* AppInfo::launch_uris(): Corrected (with deprecation) and add overload.Murray Cumming2011-07-121-0/+9
| | | | | | * gio/src/appinfo.[hg|ccg]: Deprecate the existing method and add one that takes a C++ AppLaunchContext instead of a GAppLaunchContext*. Also add an overload with no AppLaunchContext, using the new {?} syntax.
* giomm: Add TimeZoneMonitor.José Alburquerque2011-06-197-344/+3161
| | | | | | | | | | | | | | | | | | * tools/extra_defs_gen/generate_defs_gio.cc: Add the G_TYPE_TIME_ZONE_MONITOR type to the list of types for which signals and properties should be generated. * gio/src/gio_signals.defs: * gio/src/gio_signals.defs.patch: Regenerate the signal and properties defs file and add a patch file so it does not have to be edited manually. * gio/src/gio_methods.defs: * gio/src/gio_methods.defs.patch: Regenerate the methods defs file and add a patch file as above. * gio/src/filelist.am: * gio/src/timezonemonitor.{ccg,hg}: Add the sources and mention them in the build so they are processed. * tools/m4/convert_gio.m4: Add a necessary conversion.
* Gio::DBus::Connection::emit_signal(): Say why convert empty strings.José Alburquerque2011-06-091-0/+4
| | | | | * gio/src/dbusconnection.ccg (emit_signal): Explain why empty strings are converted to NULL when passed to the C API.
* Gio::DBus::Connection::emit_signal(): Replace empty strings with NULL.José Alburquerque2011-06-081-2/+5
| | | | | | | | * gio/src/dbusconnection.ccg (emit_signal): Pass NULL to the C function call where strings are empty allowing emitting signals to all listeners. Bug #645072 (Yannick Guesnet).
* Gio::DBus::Message: Fixed includes for WIN32Kalev Lember2011-05-021-1/+3
| | | | | * gio/src/dbusmessage.hg: Added G_OS_UNIX guards around unixfdlist.h include. Bug #649168
* Minor documentation improvements.Murray Cumming2011-04-067-18/+26
| | | | | | | | | | | * gio/src/proxy.hg: * gio/src/proxyaddress.hg: * gio/src/proxyresolver.hg: * gio/src/socketcontrolmessage.hg: * gio/src/unixcredentialsmessage.hg: * gio/src/unixfdlist.hg: * gio/src/unixfdmessage.hg: Added these to NetworkIO doxygen group. * glib/glibmm.h: Mention Gio::Settings.
* DBus docs: Add a descripton for they doxygen group.Murray Cumming2011-04-061-2/+8
| | | | * gio/src/dbusconnection.hg: Expand the defgroup doxygen comment block.
* DBusServer: Add overview documentation.Murray Cumming2011-04-051-0/+8
| | | | | * gio/src/dbusserver.hg: Based on my documentation patch for GDBusServer in bug #646425.
* ThemedIcon: Remove a property as suggested by a TODO.Murray Cumming2011-04-041-6/+5
| | | | | | * gio/src/themedicon.hg: The name property is write-only and construct-only so we should not have any API for it. Noticed by Kjell Ahlstedt.
* Gio::Settings: Really add list_schemas().Murray Cumming2011-04-043-5/+15
| | | | | | | | * gio/src/gio_others.defs: Add g_settings_list_schemas(), though we do not actually use this defnition yet. See below. This must be hand-written because h2defs.py gets confused by the return type. * gio/src/settings.[hg|ccg]: list_schemas(): Make this static and hand-code it because gmmproc is confused by the declaration when it is static.
* Gio::DBus::NodeInfo::lookup_interface(): Add a method overload with no name.Murray Cumming2011-04-022-0/+34
| | | | | | | | | | | * gio/src/dbusintrospection.[hg|ccg]: Add a lookup_interface() method overload that just returns the first interface, avoiding the need to specify the name when there is only one interface. The C API will not do this itself: See bug #646417. * examples/dbus/peer.cc: * examples/dbus/server.cc: * examples/dbus/session_bus_service.cc: Use the new method to simplify the code slightly.
* Gio::DBus::Connection: Added a register_method() overload with no vtable.Murray Cumming2011-04-022-2/+39
| | | | | * gio/src/dbusconnection.[hg|ccg]: This makes sense now that the C API's documentation was improved in bug #646419.
* Added a simple example of a D-Bus session bus service.Murray Cumming2011-04-011-0/+1
| | | | | | | * examples/dbus/session_bus_service.cc: This uses Gio::DBus::own_name(). * examples/Makefile.am: Mention the new test. * examples/dbus/server.cc: Mention the return (out) value for the GetTime method here too, and catch an exception.
* Gio::DBus: Minor API changes.Murray Cumming2011-04-014-29/+19
| | | | | | | | | | | | | | | | | | | | | * gio/src/dbusconnection.[hg|ccg]: register_object(), register_subtree(): Take the VTable by reference, not pointer. register_object() can take a NULL but that needs documentation (see the bug mentioned) and a future method overload. * gio/src/dbusmethodinvocation.ccg: get_parameters(): Return a VariantContainerBase instead of taking a VariantBase output parameter, because this is always a tuple. Well, I think so: See the bug mentioned. * gio/src/dbusmethodinvocation.hg: return_value(): Take a VariantContainerBase instead of a VariantBase, because this is always a tuple. return_gerror(), return_error_literal(): Rename them both to return_error(). * glib/src/variant.hg: VariantContainerBase::create_tuple(): Add a method overload that takes a single VariantBase, for convenience, so that applications don't need to create a single-item vector. * examples/dbus/busserver.cc: Adapted. * examples/dbus/busserver.cc: Rename to server.cc and actually implement it, though I am currently confused about whether this server's object should be available on an existing bus. Maybe we should use Gio::DBus::own_name() instead of Gio::DBus::Server.
* DBusProxy: Rename type_map_changed_properties to MapChangeProperties.Murray Cumming2011-03-312-5/+5
| | | | | * gio/src/dbusproxy.[hg|ccg]: Use our normal convention for container typedefs.
* Use the utility functions for creating strings.Murray Cumming2011-03-294-10/+10
| | | | | | | | | | | | | * gio/src/dbuserrorutils.ccg: * gio/src/dbusownname.ccg: * gio/src/dbusutils.ccg: * gio/src/dbuswatchname.ccg: * glib/src/fileutils.ccg: * glib/src/iochannel.ccg: * glib/src/markup.ccg: * glib/src/variant.ccg: Use convert_const_gchar_ptr_to_ustring() and convert_const_gchar_ptr_to_stdstring(), simplifying code and sometimes avoiding crashes with NULL const char*.
* Gio::DBus*: More use of VariantContainerBase.Murray Cumming2011-03-274-12/+13
| | | | | | | | | | * gio/src/dbusconnection.hg: * gio/src/dbusinterfacevtable.hg: Correct the documentation. * gio/src/dbusproxy.[hg|cgg]: call(): Take a VariantContainerBase instead of a VariantBase. signal: Provide a VariantContainerBase instead of a VariantBase, though this is not documented as necessarily being a tuple, though it is multiple values.
* Avoid use of NULL in C++Murray Cumming2011-03-271-1/+1
|