2.31.20: 2012-03-03 Murray Cumming Gio::Application: Add quit(). * gio/src/application.hg: Wrap g_application_quit(). 2012-03-02 Kjell Ahlstedt Signal*: Better description of the connect*() methods. * glib/glibmm/main.h: Mention that returning false from a bool-returning handler disconnects the handler. Other minor changes of the descriptions. Bug #669906. 2012-03-02 Murray Cumming h2defs.py: Ignore the new GDK_AVAILABLE_IN_* macros. * tools/defs_gen/h2def.py: Strip these macros so we can actually parse the latest headers. 2012-03-01 José Alburquerque gmmproc: Allow destructors to be documented. * tools/m4/base.m4 (SECTION_DTOR_DOCUMENTATION): Add a new section in which to store a destructor's documentation. * tools/m4/class_shared.m4 (_DOCUMENT_DTOR): Add a new macro which takes text and places it in a Doxygen comment block sending the comment block to the new section above. The text can be multiline. The macro assumes that any lines below the first, if any, have at least one space preceding them. If the text is a single line, it can be double quoted (the double quotes are removed). * tools/m4/class_boxedtype.m4: * tools/m4/class_gobject.m4: * tools/m4/class_interface.m4: * tools/m4/class_opaque_copyable.m4: Modify these so that any Doxygen comment block sent to the new section above is inserted in the generated declaration of the destructor. Bug #668918. 2012-02-29 José Alburquerque Generation Scripts: Don't assume the root directory is glibmm. * tools/gen_scripts/gio_generate_docs.sh: * tools/gen_scripts/gio_generate_enums.sh: * tools/gen_scripts/gio_generate_extra_defs.sh: * tools/gen_scripts/gio_generate_methods.sh: * tools/gen_scripts/glib_generate_docs.sh: * tools/gen_scripts/glib_generate_enums.sh: * tools/gen_scripts/glib_generate_extra_defs.sh: * tools/gen_scripts/glib_generate_methods.sh: Modify them so that they assume that they reside in the tools/gen_scripts directory and find the root of glibmm based on that instead of assuming that the name of the root directory is glibmm. * gio/src/gio_enums.defs.patch: Add this patch file to streamline the enum generation so that keeping the custom Gio::HOST_WAS_NOT_FOUND enum value is easier. 2012-02-29 Murray Cumming Add back our custom Gio::HOST_WAS_NOT_FOUND enum value. * gio/src/gio_enums.defs: This is easy to lose, but we always notice during make check. 2012-02-28 José Alburquerque tools: Add XML docs and defs generation scripts. * tools/gen_scripts/gio_generate_docs.sh: * tools/gen_scripts/gio_generate_enums.sh: * tools/gen_scripts/gio_generate_extra_defs.sh: * tools/gen_scripts/gio_generate_methods.sh: * tools/gen_scripts/glib_generate_docs.sh: * tools/gen_scripts/glib_generate_enums.sh: * tools/gen_scripts/glib_generate_extra_defs.sh: * tools/gen_scripts/glib_generate_methods.sh: Add these scripts to generate the XML docs and defs files for glibmm and giomm. A 'JHBUILD_SOURCES' variable pointing to the jhbuild root source directory needs to be defined and the various tools (like h2def.py, enum.pl, etc.) need to be in the command path for these scripts to run successfully. They generate the appropriate files, patch them if necessary, and place them in the correct place. All that's needed is to run the scripts. * gio/src/gio_docs.xml: * gio/src/gio_enums.defs: * gio/src/gio_methods.defs: * gio/src/gio_signals.defs: * glib/src/glib_docs.xml: * glib/src/glib_enums.defs: * glib/src/glib_functions.defs: * glib/src/gmodule_functions.defs: * glib/src/gobject_enums.defs: * glib/src/gobject_functions.defs: Regenerate all the XML and defs files to ensure that the scripts work. * glib/src/glib_enums.defs.patch: Add this patch file so that it isn't necessary to manually edit the defs file. * gio/src/gio_signals.defs.patch: * glib/src/glib_functions.defs.patch: Update these patch files so the defs files patch successfully. Bug #668918. 2012-02-28 José Alburquerque docextract_to_xml.py: Generate signal docs by default. * tools/defs_gen/docextract_to_xml.py: Change the --with-signals option to --no-signals and assume that signal documentation should be generated by default. The --no-signals option requests that the docs not be generated. Bug #668918. 2012-02-28 Kjell Ahlstedt DBus::Error, DBus::Proxy: Fix interaction with generate_wrap_init.pl. * gio/src/dbuserror.hg: Remove now unnecessary declaration of friend Gio::wrap_init(). * gio/src/dbusproxy.hg: Add _GMMPROC_EXTRA_NAMESPACE(DBus). Bug #640029. 2012-02-28 Kjell Ahlstedt Fix exceptions thrown by Thread::create() and Threads::Thread::create. * glib/src/thread.ccg: create(): Call g_thread_try_new() instead of g_thread_new(). Throw a Glib::ThreadError when appropriate, instead of calling Glib::Error::throw_exception(), which would throw Glib::Threads::ThreadError. * glib/src/threads.ccg:create(): Call g_thread_try_new() instead of g_thread_new(). Remove parameter 'joinable'. * glib/src/threads.hg: Remove parameter 'joinable'. Remove comments about non-joinable threads and thread priorities. * 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: Remove parameter 'joinable' in calls to Glib::Threads::Thread::create(). Bug #640029. 2012-02-28 Kjell Ahlstedt Fix the build with --disable-deprecated-api. * glib/glibmm/main.cc: Call get_time() instead of the deprecated get_current_time(), when GLIBMM_DISABLE_DEPRECATED is defined. * glib/src/thread.[hg|ccg]: Use _IS_DEPRECATED instead of _DEPRECATE_IFDEF_{START|END}. _DEPRECATE_IFDEF_{START|END} does not include code generated by gmmproc within #ifndef/#endif. * glib/src/threads.ccg: Change catch(Glib::Thread::Exit&) to catch(Glib::Threads::Thread::Exit&). * glib/src/threads.hg: Add _GMMPROC_EXTRA_NAMESPACE(Threads). * glib/src/valuearray.hg: * gio/src/application.hg: #undef G_DISABLE_DEPRECATED in the .cc file. * tools/m4/class_shared.m4: Define _IS_DEPRECATED. Bug #640029. 2012-02-28 Kjell Ahlstedt generate_wrap_init.pl: Improve reg. of exception classes in sub-namespaces. * tools/generate_wrap_init.pl.in: When there are exception classes in sub- namespaces, create extra wrap_init() functions in those namespaces, and register the exception classes from there. wrap_init() is a friend that makes a pointer to the private throw_func(), and that's easier if wrap_init() is declared in the same namespace as the exception class. Bug #640029. 2012-02-28 Kjell Ahlstedt generate_wrap_init.pl: Improve it for deprecated files and sub-namespaces. * tools/generate_wrap_init.pl.in: Note that _IS_DEPRECATED deprecates a whole file. Keep track of sub-namespaces for _CLASS_GOBJECT and _CLASS_GTKOBJECT (not just for _WRAP_GERROR). Ignore macros in comments. Bug #640029.