summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.31.162.31.16Murray Cumming2012-02-073-1/+11
|
* Dispatcher: Fix the build on win32.TS2012-01-302-3/+10
| | | | | * glib/glibmm/dispatcher.cc: Mention the new Threads:: namespace in the ifdefed win32 code.
* thread.h: Move calls to deprecated glib functions into thread.cc.Haikel Guemar2011-12-083-3/+36
| | | | | | | * glib/src/thread.[hg|ccg]: Move calls to deprecated glib functions from thread.h into new public helper functions, so they are only used in our .cc file. This avoids warnings in application compiles just because they happen to include this header.
* 2.31.22.31.2Murray Cumming2011-11-243-4/+35
|
* Make class Glib::Threads::Private buildable with --enable-warnings=fatal.Kjell Ahlstedt2011-11-242-6/+13
| | | | | * glib/src/threads.hg: G_PRIVATE_INIT(destructor_func) is used only in an initialization.
* Restore unintended change.Murray Cumming2011-11-231-1/+1
|
* Add Glib::Threads::* in threads.h, deprecating everything in thread.hMurray Cumming2011-11-2321-69/+1163
| | | | | | | | | | | | | | | | | | | | | | | | | | * glib/src/filelist.am: * glib/src/thread.[hg|ccg]: Deprecate the whole file, adding deprecation doxygen comments to all API. * glib/src/threads.[hg|ccg]: A new Threads namespace containing equivalents for everything in thread.h, implemented using only non-deprecated glib API. This was necessary because we had to break the ABI to do this. * glib/glibmm.h: Include threads.h * glib/glibmm/main.[h|cc]: Added a wait() method overload that takes the new types, deprecating the existing wait() method. * examples/network/resolver.cc: * examples/network/socket-client.cc: * examples/network/socket-server.cc: * examples/thread/dispatcher.cc: * examples/thread/dispatcher2.cc: * examples/thread/thread.cc: * examples/thread/threadpool.cc: * glib/glibmm/dispatcher.cc: * glib/glibmm/exceptionhandler.cc: * glib/glibmm/threadpool.[h|cc]: Use the new Glib::Threads::* types instead of thread.h.
* Avoid a deprecation warning in implelementation of deprecated API.Murray Cumming2011-11-232-0/+9
| | | | | | * glib/glibmm/main.cc: Define GLIB_DISABLE_DEPRECATION_WARNINGS to avoid a warning about g_source_get_current_time(), which we must use in our own deprecated code.
* class.cc: Avoid compiler warnings when using -std=c++0x with g++.Murray Cumming2011-11-232-4/+28
| | | | | | * glib/glibmm/class.cc: Add casts because GTypeQuery::class_size and instance_size are guint but GTypeInfo::class_size and instance_size are guint16.
* Require glibmm 2.2.10 so that make check works.Murray Cumming2011-11-182-1/+7
| | | | | | | | * configure.ac: Bug #663686 (Michael Biebl) Conflicts: ChangeLog
* Ensure template parameter has a space before to avoid trigraphs.Hub Figuiere2011-11-162-1/+9
| | | | | | | (Gtkmm bug #663303) * tools/m4/property.m4: Ensure template parameter has a space before to avoid trigraphs.
* giomm: Add some unwrapped methods and properties.José Alburquerque2011-10-269-0/+25
| | | | | | | | | | | * 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.
* gmmproc: Example Removal: Also remove code in </programlisting> tags.José Alburquerque2011-10-262-1/+9
| | | | | * tools/pm/DocsParser.pm (lookup_documentation): Also remove code in <programlisting>...</programlisting> tags.
* Avoid use of deprecated API in tests and examples.Murray Cumming2011-10-268-10/+21
| | | | | | | | | | | * tests/Makefile.am: * examples/Makefile.am: Disable deprecated API. * examples/network/socket-client.cc: * examples/network/socket-server.cc: * examples/thread/dispatcher.cc: * examples/thread/dispatcher2.cc: * examples/thread/thread.cc: Remove calls to Glib::thread_init(), instead calling Glib::init() where that side-effect was also intended.
* threadpool example: Use Mutex instead of StaticMutex.Murray Cumming2011-10-263-4/+13
| | | | | | | | | * examples/thread/threadpool.cc: The advantage of StaticMutex was that it would silently do nothing if threads were not initialized. That was never a useful distinction in this example anyway. Also remove the deprecated thread_init() call. * glib/src/thread.ccg: Mutex: Add a TODO about not using the deprecated API.
* 2.31.0.22.31.0.2Murray Cumming2011-10-262-1/+5
|
* Fix the deprecation ifdefs.Murray Cumming2011-10-262-7/+19
| | | | | * glib/src/thread.hg: Move the deprecation ifdefs to avoid affecting non-deprecated API.
* 2.31.0.12.31.0.1Murray Cumming2011-10-263-1/+18
|
* Avoid an unused-parameter compiler warning.Murray Cumming2011-10-262-1/+7
| | | | * glib/src/thread.ccg: thread_init(): Comment out the vtable parameter.
* thread.h: Allow use of this without causing deprecation compiler warnings.Murray Cumming2011-10-2610-9/+64
| | | | | | | | | | | | | | | | | | | | | * glib/src/thread.hg: undef and then redefine G_DISABLE_DEPRECATED, and define GLIB_DISABLE_DEPRECATION_WARNINGS, if G_DISABLE_DEPRECATED is defined, so we can use the deprecated API in this header (though only in our own deprecated API). * tools/generate_wrap_init.pl.in: Include glibmm.h instead of glib.h so we can include thread.h first (via glibmm.h) instead of only later. This seems more logical than explicitly including thread.h in all (even non-glibmm) generated wrap_init.cc files. * tools/m4/base.m4: * glib/glibmm.h: * glib/glibmm/dispatcher.cc: * glib/glibmm/exceptionhandler.cc: * glib/glibmm/main.cc: * examples/thread/thread.cc: * examples/thread/threadpool.cc: Adjust the includes to include thread.h first.
* Move IOCondition from main.h to iochannel.h and autogenerate it.Murray Cumming2011-10-265-61/+44
| | | | | | | | | | | * glib/src/iochannel.hg: Use _WRAP_ENUM() for IOCondition instead of hand-coding it in * glib/glibmm/main.h: though this requires some manual editing of * glib/src/glib_enums.defs: due to the weird defines that GioChannel uses for its values. See the comment. * glib/glibmm/streamiochannel.cc: Adjust the includes. This avoids the need to include glib.h from main.h.
* Avoid some deprecation compiler warnings.Murray Cumming2011-10-265-0/+19
| | | | | | | | | | * 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.
* Missing file.Murray Cumming2011-10-261-0/+50
|
* Thread: Move deprecated parts together.Murray Cumming2011-10-262-30/+31
| | | | * glib/src/thread.hg: This simplifies things a bit.
* gmmproc: Don't include C code examples found in the XML docs.José Alburquerque2011-10-262-2/+25
| | | | | | | | | | | | | * tools/pm/DocsParser.pm (lookup_documentation): Remove the C example code from the attained documentation of the specified function. Print a warning that the example code has been removed if that is the case. Include the function name in the warning so that it is known where the examples are in case it is convenient to translate them. (convert_tags_to_doxygen): No longer convert tags and symbols that signal example code to Doxygen format since they are removed with the example code. Bug #650544
* giomm/wrap_init.h: Remove the glibmm.h include from here too.Murray Cumming2011-10-253-2/+6
| | | | | * 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-252-3/+7
| | | | * gio/giomm/wrap_init.h: The #include does not seem necessary at all.
* gmmproc: Include <glibmm.h> in .cc files for convenience.Murray Cumming2011-10-253-4/+15
| | | | | | | * tools/m4/base.m4: Add an include <glibmm.h> line to the .cc files. * glib/src/optioncontext.ccg: Rename a namespace to avoid a clash. It is more useful to keep the general glibmm.h include out of headers.
* gmmproc: Don't include <glibmm.h> by default in generated files.José Alburquerque2011-10-2575-3/+139
| | | | | | | | | | | | * 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
* 2.31.02.31.0Murray Cumming2011-10-253-1/+36
|
* Regenerated more defs.Murray Cumming2011-10-257-1039/+800
| | | | | | | | | * 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.
* Do not use gthread-2.0.Murray Cumming2011-10-253-6/+18
| | | | | | | | | * configure.ac: Do not use gthread-2.0 at all, because it only contains empty functions so it is better to just not call them. Require the latest glib version, to avoid people using this version of glibmm with a version of glib that would need g_thread_init(). * glib/src/thread.ccg: thread_init(): Do not call g_thread_init() because it now does nothing and would require linking to gthread-2.0.
* Fix the make check build by always linking to gthread-2.0.Murray Cumming2011-10-258-34/+30
| | | | | | | | | | | | | * 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.
* Regenerate enums defs.Murray Cumming2011-10-255-61/+64
| | | | | | | | * glib/src/glib_enums.defs, gobject_enums.defs: Regenerated with enums.pl. * glib/src/glib_deprecated_enums.defs: Added this file. * glib/src/filelist.am: Mention the new file. * glib/src/glib.defs: Mention the new file and actually mention gobject_enums.defs.
* Gio::DBus::Connection: Temporarily remove newly added call() methods.José Alburquerque2011-10-236-2/+25
| | | | | | | | | | * 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.
* Thread: Use g_thread_new() instead of g_thread_create().Murray Cumming2011-10-213-13/+21
| | | | | | | * glib/src/thread.[hg|ccg]: create(): Replace use of (deprecated) g_thread_create() with g_thread_new(), ignoring the joinable parameter. create(lots of parameters): Deprecate this, because the parameters are ignored by g_thread_create_full() now.
* Deprecated thread_init(), Thread::joinable(), *_priotity(), etc.Murray Cumming2011-10-213-84/+69
| | | | | | * glib/src/thread.[hg|ccg]: Deprecate thread_init(), thread_supported, Thread::joinable(), Thread::set_priority(), Thread::get_priority() and ThreadPriority.
* gmmproc: Remove M4 warnings due to commas in return types.José Alburquerque2011-10-192-5/+33
| | | | | | | | | | | | | | * tools/m4/convert_base.m4 (__HASH2): Appropriately quote the pushdef() arguments and the m4_ifelse() arguments due to some warnings generated because of the newly wrapped method in the ApplicationCommandLine class (get_platform_data()) which has a comma in the return type. The wrapping was successful even with the warning but the return type was still being split when passed to this macro. Document what the macro does. (_CONVERT): Typos. (_CONVERSION): (_INITIALIZATION): Document what parameters are allowed for these macros.
* Revert "gmmproc: Remove M4 warnings due to commas in return types."Murray Cumming2011-10-182-13/+2
| | | | This reverts commit 570314de2e0ff7635847695ec546d501817fb878.
* gmmproc: Remove M4 warnings due to commas in return types.José Alburquerque2011-10-162-2/+13
| | | | | | | | | * tools/m4/convert_base.m4 (__HASH2): Appropriately quote the pushdef() arguments and the m4_ifelse() arguments due to some warnings generated because of the newly wrapped method in the ApplicationCommandLine class (get_platform_data()) which has a comma in the return type. The wrapping was successful even with the warning but the return type was still being split when passed to this macro.
* Gio::DBus::Connection: Correct UnixFDList class forward declaration.José Alburquerque2011-10-132-4/+13
| | | | | | | | * 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.
* Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().José Alburquerque2011-10-132-1/+10
| | | | | | | * glib/src/date.ccg: The latter function is deprecated. This fixes the build with the master branch of glib with deprecations disabled though there's one small error related to the Threads discussion on the mailing list that will still have to be looked at.
* DBusMethodInvocation: Add UnixFDList return_value() method overload.José Alburquerque2011-10-133-0/+15
| | | | | * gio/src/dbusmethodinvocation.hg: Add the method overload. * gio/src/dbusmessage.hg: Add an _IGNORE.
* Do not include glib/gvarianttype.h.Murray Cumming2011-10-132-1/+8
| | | | | * glib/src/thread.hg: Include glib.h instead. The recent glib version has a pragma that complains about this.
* Correct the ChangeLog.José Alburquerque2011-10-121-1/+3
|
* Gio::DBus::Connection: Add UnixFDList call() method overloads.José Alburquerque2011-10-123-8/+152
| | | | | * gio/src/dbusconnection.{ccg,hg}: Add cancellable and non-cancellable UnixFDList call() methods.
* VariantContainerBase: Add create_maybe().José Alburquerque2011-10-123-0/+29
| | | | | | | * glib/src/variant.{ccg,hg}: Add a create_maybe() method because it was discussed on the mailing list. Clearly the variant classes are not intended for general use. However, this method is added just so that the API is more complete.
* DataInputStream: Add read_line_utf8() and read_line_finish_utf8().José Alburquerque2011-10-112-0/+20
| | | | | | | | | * 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.
* gmmproc: _WRAP_METHOD: Use {OUT} instead of {RET} for output params.José Alburquerque2011-10-113-6/+18
| | | | | | | | | | * tools/pm/Output.pm: Use {OUT} instead of {RET} to signify that a parameter is an output parameter because it is probably more intuitive. * tools/m4/convert_base.m4 (_INITIALIZE): Don't quote the C return because otherwise the macros in it aren't expanded when the macro is used. This could be because of the recent M4 changes in the previous to the last commit.
* ApplicationCommandLine: Add the get_platform_data() method.José Alburquerque2011-10-112-7/+9
| | | | * gio/src/applicationcommandline.hg: