summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.30.02.30.0Murray Cumming2011-09-274-5/+19
|
* Gio::DBus::Server: Add constructors.Murray Cumming2011-09-273-10/+11
| | | | | * 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-276-1671/+339
| | | | | | | | | * 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-2615-990/+14
| | | | | | | | | | | | * 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-225-3/+167
| | | | | | | | * 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-226-1/+95
| | | | | | | | * 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.
* Don't use obsolete macros.Krzesimir Nowak2011-09-2211-252/+191
| | | | | | | | | | | | | | | * autogen.sh: Warn about everything during autoreconf. * configure.ac: Replaced obsolete macros with their modern counterparts. * build/c_std.m4: Ditto. * build/cxx.m4: Ditto. * build/cxx_std.m4: Ditto. * build/sun.m4: Ditto. * build/macros.m4: Ditto. Removed all unused macros and renamed to... * build/debug.m4: ...this, because only macro for debugging refcount has left. * build/glibmm_check_perl.m4: Deleted. None of the macros there was used. * build/dk-feature.m4: Use AS_VAR_IF. * Makefile.am: Removed distribution of deleted m4 file.
* SimpleAction: Add create() methods.José Alburquerque2011-09-212-0/+16
| | | | | | * 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-216-2/+179
| | | | | | | | | | | | * 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-202-6/+13
| | | | | | * 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-2010-553/+916
| | | | | | | | | | | | | | | | | | | | | | | | * 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().
* gmmproc: DocParser: Correct the removal of link tags.José Alburquerque2011-09-192-3/+15
| | | | | | | | | | * tools/pm/DocsParser.pm (convert_tags_to_doxygen): Make the matching of the characters of a link tag not greedy so that the first occurrence of the final '>' is accepted in a match instead of a possible later one pertaining to a different tag altogether. Also translate '|[' and ']|' to '@code' and '@endcode' respectively. Bug #650544
* 2.29.132.29.13Murray Cumming2011-09-064-16/+25
|
* Variant< std::vector<std::string> >: Ensure correct creation.José Alburquerque2011-09-061-0/+9
| | | | | | | | * glib/src/variant.ccg (Variant< std::vector<std::string> >::create): Use g_variant_new_bytestring_array() to create the variant instead of a builder to avoid an unknown bug. Bug #657030 (Aurimas Černius)
* Missing parts of the last commitMurray Cumming2011-09-062-13/+23
|
* giomm: Variant< vector<std::string> > (array of bytestrings): Fixes.Murray Cumming2011-09-061-0/+10
| | | | | | | | * glib/src/variant.ccg: create(): Use VariantType::to_string.c_str() instead of reinterpret_cast. I have no idea why we ever used reinterpret_cast. * tests/glibmm_variant/main.cc: Add a simple test for this VariantType specialization, though it still fails. Bug #657030 (Aurimas Černius)
* gmmproc: Correct handling of constversion etc. in _WRAP_METHOD.Kjell Ahlstedt2011-09-062-0/+12
| | | | | | * tools/pm/WrapParser.pm: The parameters refreturn, errthrow, and constversion in _WRAP_METHOD was applied also to following instances wrapping the same C function. Bug #657751, comment 5.
* Updated .gitignore.Krzesimir Nowak2011-09-011-0/+4
| | | | * .gitignore: Ignore datetime.{cc,h} and timezone.{cc,h}.
* 2.29.122.29.12Murray Cumming2011-08-313-1/+20
|
* Visual Studio Projects UpdatesChun-wei Fan2011-08-252-195/+202
| | | | | Made the VS 2010 solution to have Windows-style EOL so that it will function correctly
* TimeZoneMonitor: Remove as was done in glib.José Alburquerque2011-08-226-77/+16
| | | | | | | | | | | | | | * 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
* configure: Require the latest libsigc++.Murray Cumming2011-08-222-1/+7
| | | | * configure.ac: Because our tests require it.
* giomm: Application: local_command_line_vfunc(): Use references for parameters.Murray Cumming2011-08-032-3/+10
| | | | | * 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-039-0/+667
| | | | This reverts commit c446268b44f3595431ba6f535dc297557c6097e0.
* 2.29.112.29.11Murray Cumming2011-07-253-1/+22
|
* Add reftpr_sigc_bind test case.Murray Cumming2011-07-193-1/+79
| | | | | | * tests/glibmm_refptr_sigc_bind/main.cc: * tests/Makefile.am: Add a new test case from Kjell Ahlstedt, to test a fix in libsigc++. See bug #564005#c14.
* Add h2defs.py and docextract_to_xml.py, removed from pygboject.Murray Cumming2011-07-198-0/+2125
| | | | | | | | | | | * tools/defs_gen/definitions.py: * tools/defs_gen/defsparser.py: * tools/defs_gen/docextract.py: * tools/defs_gen/docextract_to_xml.py: * tools/defs_gen/h2def.py: * tools/defs_gen/scmexpr.py: Add h2def.py and docextract_to_xml.py, and any .py files that they use, because they were removed from pygobject. * tools/Makefile.am: Add these to EXTRA_DIST.
* AppInfo: Add launch() taking one file, and launch_uri() taking one URI.Murray Cumming2011-07-193-1/+140
| | | | | | * 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.
* gmmproc: _STRUCT_NOT_HIDDEN: Make macro local to class only.José Alburquerque2011-07-182-0/+10
| | | | | | | * tools/m4/class_shared.m4 (STRUCT_NOT_HIDDEN): Undefine the boolean variable that signals that the typedefs generated by gmmproc should not be generated once the _STRUCT_NOT_HIDDEN macro is used so that it doesn't affect all the classes defined in a file.
* AppInfo::launch(): Correct the parameter type.Murray Cumming2011-07-122-5/+21
| | | | | | | | | | | | * 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-122-0/+17
| | | | | | * 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.
* 2.29.102.29.10Murray Cumming2011-07-063-1/+9
|
* Add -Wformat-security to the --enable-warnings=fatal build.Murray Cumming2011-06-292-1/+7
| | | | * configure.ac: This seems to be popular now.
* giomm: Add TimeZoneMonitor.José Alburquerque2011-06-1910-344/+3185
| | | | | | | | | | | | | | | | | | * 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.
* DateTime, TimeZone: Use classes without Glib::RefPt<>.José Alburquerque2011-06-164-34/+47
| | | | | | | | | | | * glib/src/datetime.hg: * glib/src/timezone.hg: Since these classes are immutable (like Glib::VariantBase), remove the need to use these classes with Glib::RefPtr<> by using the _CLASS_OPAQUE_COPYABLE macro instead of the _CLASS_OPAQUE_REFCOUNTED macro. This should make using the classes a little less tedious. * tools/m4/convert_glib.m4: Modify the corresponding conversions according to the above.
* DateTime: Add methods and create() methods not creating now instances.José Alburquerque2011-06-155-14/+334
| | | | | | | | | | | | | | | | * glib/src/glib_functions.defs: h2def.py missed the g_date_time_add*() functions because they were preceded by an unknown macro, namely G_GNUC_WARN_UNUSED_RESULT, so temporarily removed the macros and regenerated this file to get the definitions for those functions. h2def.py will probably have to be modified to skip over those macros properly in the future. Also corrected the g_date_time_[compare|hash|equal] definitions so that the functions could be wrapped as method members of DateTime. * glib/src/glib_functions.defs.patch: Added this patch file so future editing of the above file should not be necessary. * glib/src/datetime.hg: Added the missing create() and the rest of the methods. * tools/m4/convert_glib.m4: Added necessary conversions.
* TimeZone: Const corrections.José Alburquerque2011-06-142-5/+12
| | | | | * glib/src/timezone.hg: Correct the constness of the TimeZone for some methods.
* Increase the Glib requirement to 2.29.8.José Alburquerque2011-06-142-0/+9
| | | | | | * configure.ac: The requirement was increased in the previous to the last commit but make sure it is shown clearly in the ChangeLog and in git.
* glibmm: Add TimeZone and partial DateTime classes.José Alburquerque2011-06-148-17/+264
| | | | | | | | | | * glib/src/datetime.{ccg,hg}: * glib/src/timezone.{ccg,hg}: * glib/src/filelist.am: Add the new sources and mention them in the build structure so they are processed. * glib/src/glib_extra_objects.defs: Include object definitions of the new classes so there are no gmmproc warnings when parsing the docs. * tools/m4/convert_glib.m4: Add necessary conversions.
* glibmm: Regenerate the defs and xml doc files.José Alburquerque2011-06-147-333/+10907
| | | | | | | | | | | * glib/src/glib_docs.xml: * glib/src/glib_enums.defs: * glib/src/glib_functions.defs: * glib/src/gobject_enums.defs: * glib/src/gobject_functions.defs: Regenerate with Glib 2.29.8 to get the new functions enums and docs. * configure.ac: Increase the Glib requirement to 2.29.8.
* 2.28.22.28.2glibmm-2-28Murray Cumming2011-06-143-1/+22
|
* Removed doctooldir variable from pkgconfig filesKalev Lember2011-06-133-2/+9
| | | | | | * glib/glibmm{,-uninstalled}.pc.in: Removed doctooldir variable now that the scripts are in mm-common. https://bugzilla.redhat.com/show_bug.cgi?id=712474
* m4 Macros: _INITIALZE: Modify so that $1 substitutes C++ type w/o &.José Alburquerque2011-06-132-1/+9
| | | | | | * tools/m4/convert_base.m4 (_INITIALIZE): Changed the macro so that $1 substitutes the C++ type without the final ampersand (&) for convenience.
* gmmproc: Use '.' instead of '-' in parameter reordering.José Alburquerque2011-06-122-8/+16
| | | | | | * tools/pm/Function.pm (parse_param): Use a '.' instead of a '-' to signify that the C++ parameter name should be used as the C parameter name to map the current C++ parameter to.
* Gio::DBus::Connection::emit_signal(): Say why convert empty strings.José Alburquerque2011-06-092-0/+11
| | | | | * 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-082-2/+15
| | | | | | | | * 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).
* M4 Macros: Rename the _INITIALIZER macro to _INITIALIZATION.José Alburquerque2011-06-072-4/+11
| | | | | * tools/m4/convert_base.m4 (_INITIALIZER): Rename the macro to _INITIALIZATION to be more consistent with the _CONVERSION macro.
* gmmproc: _WRAP_METHOD: Add the possibility of an output parameter.José Alburquerque2011-06-075-19/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tools/pm/Output.pm (output_wrap_meth): Modified to test if there is a parameter mapping in the current C++ function from the hypothetical C name 'RET' to a C++ parameter index. If so, that parameter is treated as an output parameter. This allows wrap statements such as: _WRAP_METHOD(static void get_finish(Glib::RefPtr<Connection>& conn{RET}, const Glib::RefPtr<AsyncResult>& res), g_bus_get_finish, errthrow ) Where the 'conn' parameter is an output parameter. The output parameter name and type are passed to the _STATIC_METHOD and _METHOD macros (along with the wrap line number). (convert_args_cpp_to_c): Modified to process the C++ parameters dealing with the possibility of an output parameter. * tools/pm/Function.pm: Typo. * tools/m4/method.m4 (_METHOD): (_STATIC_METHOD): Both modified to accept an optional output parameter name, type and wrap line number and if they exist to ensure that the output parameter is correctly set to the return of the C function. To do that it uses the new _INITIALIZE macro. * tools/m4/convert_base.m4 (_INITIALIZER): (_INITIALIZE): Add macros (similar to the _CONVERSION/_CONVERT macros) used to record how to initialize a C++ type from a C type and later to initialize an output parameter of the C++ type. The _INITIALIZER macro has much the same syntax as the _CONVERSION macro. For example: _INITIALIZER(`Glib::RefPtr<Connection>&',`GDBusConnection*', `$3 = Glib::wrap($4)') Describes how to initialize a C++ reference to a Glib::RefPtr that contains a Gio::DBus::Connection from its corresponding C type. $3 represents the output parameter name and $4 represents the C return. The _INITIALIZE macro can then be appropriately used by the _METHOD and _STATIC_METHOD macros to initialize the output parameters passed to them by gmmproc.
* gmmproc: _WRAP_[CREATE|CTOR|METHOD]: Support parameter reordering.José Alburquerque2011-06-063-104/+133
| | | | | | | | | | | | | | | * tools/pm/Function.pm (param_mappings): Add a new hash member mapping C parameter names to C++ parameter indices. The map is specified by appending a {name[?]} to the desired C++ parameter name in the C++ method declaration. A '-' in place of a C parameter name means to use the C++ parameter name. (parse_param): Modified to detect parameter mappings and set the appropriate mapping in the above new member. No mappings occur if none are specified. * tools/pm/Output.pm (convert_args_cpp_to_c): (get_ctor_properties): Modified to use the new C param names to C++ param indices mappings member above to allow reordering of parameters in the C++ method declaration.
* tools: Recursive whitespace cleanup in folder.José Alburquerque2011-06-0515-51/+51
|