summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gmmproc: _WRAP_SIGNAL(): Mark deprecated signals in the _p.h and .cc files.Kjell Ahlstedt2012-03-264-25/+73
| | | | | | | | | * tools/pm/WrapParser.pm: output_wrap_signal(): Pass $deprecated to output_wrap_default_signal_handler_[h|cc](). * tools/pm/Output.pm: output_wrap_default_signal_handler_[h|cc](): Take a 'deprecated' bool parameter and pass it to _SIGNAL_P[H|CC](). * tools/m4/signal.m4: _SIGNAL_PROXY(): Add deprecation info to the .cc file. _SIGNAL_PH(), _SIGNAL_PCC(): Take a 'deprecated' bool parameter.
* gmmproc: _WRAP_PROPERTY(): Fix mixed-up deprecation and documentation.Kjell Ahlstedt2012-03-263-16/+25
| | | | | | * tools/pm/Output.pm: Add $deprecated in the first call to _PROPERTY_PROXY(). * tools/m4/property.m4: Correct comments in .cc files by swapping #endif's in _PROPERTY_PROXY().
* Gio: Move AppLaunchContext into its own header file.Murray Cumming2012-03-265-26/+101
| | | | | | | * gio/src/appinfo.[hg|ccg]: Move the AppLaunchContext class into: * gio/src/applaunchcontext.[hg|ccg]: This helps gmmproc, for instance when deriving from it for Gdk::AppLaunchContext.
* Correct the last ChangeLog entry.José Alburquerque2012-03-251-1/+1
|
* ActionGroup, DBusObject: Ensure vfunc callbacks return valid memory.José Alburquerque2012-03-254-3/+16
| | | | | | | | | * gio/src/action.hg (get_name_vfunc_callback): * gio/src/dbusobject.hg (get_object_path_vfunc_callback): (get_interfaces_vfunc_callback): Ensure that the return values of the virtual functions of these callbacks are properly copied by correcting the appropriate conversions so that the callbacks don't return empty memory.
* ActionGroup: list_actions_vfunc(): Do not return freed memory.Murray Cumming2012-03-232-1/+8
| | | | | * gio/src/actiongroup.hg: list_actions vfunc: Correct the conversion, doing a deep copy of the array of strings.
* gmmproc: _WRAP_SIGNAL(): Allow signals to be deprecated.Murray Cumming2012-03-235-23/+55
| | | | | | | | | | | * tools/pm/WrapParser.pm: on_wrap_signal(): Parse an optional deprecated "the explanation" parameter. * tools/pm/Output.pm: output_wrap_signal_decl(): Take a deprecated bool and deprecated_docs, passing them to the m4 macro. * tools/m4/signal.m4: _SIGNAL_PROXY(): Take a deprecated bool parameter and use it to ifdef-out the signal declaration. However, we cannot put the ifdef around the default signal handler, because that would break ABI.
* Prepare NEWS for the next release.Murray Cumming2012-03-231-0/+22
|
* Gio: MenuItem: set_action_and_target(): Add one without the cariant.Murray Cumming2012-03-223-1/+18
| | | | | | * gio/src/menuitem.[hg|ccg]: set_action_and_target(): Rename to set_action() and add a set_action() with just the action name, because the GVariant* is optional.
* Gio: SimpleAction: Add a parameter that takes no VariantType.Murray Cumming2012-03-223-2/+18
| | | | * gio/src/simpleaction.[hg|ccg]: The GVariantType* is optional.
* Gio: Menu, MenuItem: Add default parameter values.Murray Cumming2012-03-223-4/+13
| | | | | | * gio/src/menu.hg: * gio/src/menuitem.hg: Let the detailed_description parameters be empty.
* Gio: Add Menu and MenuItem.Murray Cumming2012-03-2210-2/+199
| | | | | | | | | | | | * tools/extra_defs_gen/generate_defs_gio.cc: Mention the new GTypes here, though they do not seem to have any properties or signals. * gio/src/filelist.am: * gio/src/menu.[hg|ccg]: * gio/src/menuitem.[hg|ccg]: Add these classes, as a way to create the Gio::MenuModel for Gtk::Application::set_app_menu() and set_menubar(). * tools/m4/convert_gio.m4: Add MenuItem conversion. * gio/giomm.h: Mention the new headers here.
* Dispatcher examples: Use Glib::signal_idle().connect_once().Kjell Ahlstedt2012-03-223-20/+22
| | | | | | * examples/thread/dispatcher.cc: Use Glib::signal_idle().connect_once(). * examples/thread/dispatcher2.cc: Use Glib::signal_idle().connect_once(). Rename class Dispatcher to ThreadDispatcher. Bug #396963
* Fix some warnings found by clang++.Murray Cumming2012-03-192-1/+8
| | | | | * glib/glibmm/class.cc: registered_derived_type(): Use (void*)0 instead of NULL to avoid a missing sentintel warning.
* Gio::DBus::Object: Add the signals of the interface.José Alburquerque2012-03-166-1/+44
| | | | | | | | | | | | | * gio/src/dbusobject.hg: Add the signal_interface_[added|removed]() signals of the interface. * tools/extra_defs_gen/generate_defs_gio.cc: Add the GDBusObject GType to the signal and properties generation utility. * gio/src/gio_signals.defs: Regenerate the defs file to get the signals of the interface. * tools/m4/convert_gio.m4: Add a necessary conversion for wrapping the signals. * gio/src/dbusinterface.hg: Whitespace corrections.
* DateTime: Correct the declaration of the TimeVal struct.José Alburquerque2012-03-152-1/+9
| | | | | | * glib/src/datetime.hg: It was declared as a class but is in fact a struct. I also built the jhbuild c++ sources (as gtkmm was) using clang++ out of curiosity which discovered this.
* Gio::DBus: Add the Interface and Object interfaces.José Alburquerque2012-03-158-56/+328
| | | | | | | | | | * gio/src/dbusinterface.{ccg,hg}: * gio/src/dbusobject.{ccg,hg}: * gio/src/filelist.am: Add the new sources and include them in the list of files to be built. * gio/src/gio_vfuncs.defs: Add the virtual function definitions for the new interfaces. * tools/m4/convert_gio.m4: Add conversions for the new interfaces.
* Glib::Threads::Private, Glib::Dispatcher: Delete Glib::DispatchNotifier.Kjell Ahlstedt2012-03-124-6/+60
| | | | | | | * glib/src/thread.hg: Add missing @deprecated. * glib/src/threads.hg: Add Private::replace(). Add documentation to Private. * glib/glibmm/dispatcher.cc: Use Private::replace() instead of set(). Bug #671587.
* 2.31.202.31.20reallyMurray Cumming2012-03-063-1/+36
|
* Gio::Application: Add quit().2.31.20Murray Cumming2012-03-032-0/+8
| | | | * gio/src/application.hg: Wrap g_application_quit().
* Signal*: Better description of the connect*() methods.Kjell Ahlstedt2012-03-022-14/+43
| | | | | | * glib/glibmm/main.h: Mention that returning false from a bool-returning handler disconnects the handler. Other minor changes of the descriptions. Bug #669906.
* h2defs.py: Ignore the new GDK_AVAILABLE_IN_* macros.Murray Cumming2012-03-022-0/+11
| | | | | * tools/defs_gen/h2def.py: Strip these macros so we can actually parse the latest headers.
* gmmproc: Allow destructors to be documented.José Alburquerque2012-03-017-0/+49
| | | | | | | | | | | | | | | | | | | * 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.
* Generation Scripts: Don't assume the root directory is glibmm.José Alburquerque2012-03-019-26/+55
| | | | | | | | | | | | | | | | | | * 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.
* Add back our custom Gio::HOST_WAS_NOT_FOUND enum value.Murray Cumming2012-02-292-0/+8
| | | | | * gio/src/gio_enums.defs: This is easy to lose, but we always notice during make check.
* tools: Add XML docs and defs generation scripts.José Alburquerque2012-02-2822-218/+2405
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* docextract_to_xml.py: Generate signal docs by default.José Alburquerque2012-02-282-5/+16
| | | | | | | | | * 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.
* DBus::Error, DBus::Proxy: Fix interaction with generate_wrap_init.pl.Kjell Ahlstedt2012-02-283-12/+10
| | | | | | * gio/src/dbuserror.hg: Remove now unnecessary declaration of friend Gio::wrap_init(). * gio/src/dbusproxy.hg: Add _GMMPROC_EXTRA_NAMESPACE(DBus). Bug #640029.
* Fix exceptions thrown by Thread::create() and Threads::Thread::create.Kjell Ahlstedt2012-02-2810-28/+67
| | | | | | | | | | | | | | | | | * 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.
* Fix the build with --disable-deprecated-api.Kjell Ahlstedt2012-02-289-17/+76
| | | | | | | | | | | | | | * 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.
* generate_wrap_init.pl: Improve reg. of exception classes in sub-namespaces.Kjell Ahlstedt2012-02-282-3/+91
| | | | | | | | * 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.
* generate_wrap_init.pl: Improve it for deprecated files and sub-namespaces.Kjell Ahlstedt2012-02-282-169/+155
| | | | | | | * 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.
* 2.31.18.12.31.18.1Murray Cumming2012-02-273-1/+24
|
* h2def.py: Handle types such as 'const gchar* const *' for functions.José Alburquerque2012-02-262-2/+15
| | | | | | | | | * tools/defs_gen/h2def.py (clean_func): Make deprecated handling more general so that macros such as GDK_DEPRECATED and GDK_DEPRECATED_FOR() are also stripped. Also replace '* const' with '*-const' in the constants processing section so that types such as 'const gchar* const*' (which are now used in the declaration of functions such as gtk_about_dialog_get_authors()) are correctly processed.
* Gio::DBus::[ActionGroup|MenuModel]: Have get() and not create() methods.José Alburquerque2012-02-263-8/+13
| | | | | | | | | * gio/src/dbusactiongroup.hg: * gio/src/dbusmenumodel.hg: Have get() methods to get instances of theses classes and not create() methods as is done in Gio::Application. Bug #637445.
* gmmproc: _WRAP_PROPERTY(): Allow properties to be deprecated.Murray Cumming2012-02-245-11/+68
| | | | | | | | | | | | * tools/m4/property.m4: get_docs(): Take optional documentation_docs too, like DocsParser::lookup_documentation(). * tools/pm/Output.pm: output_wrap_property(): Take a deprecated bool and deprecated_docs, adding the ifdef if necessary and passing it to the _PROPERTY_PROXY() m4 macro, with the amended documentation. * tools/pm/Property.pm: _PROPERTY_PROXY(): Take a deprecated bool parameter and add the ifndef if necessary. * tools/pm/WrapParser.pm: on_wrap_property(): Parse an optional deprecated "the explanation" parameter.
* Gio::Application, Gio::DBus::AuthObserver: Typos.José Alburquerque2012-02-243-2/+9
| | | | | * gio/src/application.hg: * gio/src/dbusauthobserver.hg:
* Gio::Application: Add missing virtual functions and methods.José Alburquerque2012-02-245-11/+79
| | | | | | | | | | * gio/src/application.{ccg,hg}: Add the rest of the virtual functions -- all except the one with a GVariantBuilder parameter because that type is not wrapped yet. Also add the [set|get]_default() methods wrapping the respective C functions. * gio/src/gio_vfuncs.defs: Add the rest of GApplication's virtual function definitions so they can be wrapped. * tools/m4/convert_gio.m4: Add GApplication conversions.
* giomm: Add class docs to recently added Application related classes.José Alburquerque2012-02-247-9/+54
| | | | | | | | | * gio/src/actionmap.hg: * gio/src/dbusactiongroup.hg: * gio/src/dbusmenumodel.hg: * gio/src/menuattributeiter.hg: * gio/src/menulinkiter.hg: * gio/src/remoteactiongroup.hg:
* MenuModel: Add the attribute and link constants.José Alburquerque2012-02-243-6/+141
| | | | | | | * gio/src/dbusmenumodel.hg: * gio/src/menumodel.ccg: Add the class documentation. Also add the attribute and link constants from the C API in enums and re-wrap the existing methods to use the enums (this was adapted from gstreamermm).
* giomm: Add the DBus::MenuModel class.José Alburquerque2012-02-244-0/+86
| | | | | | | * gio/src/dbusmenumodel.{ccg,hg}: Add the sources wrapping a single create() method. * gio/src/filelist.am: Add the sources to the list of files to be built.
* Gio::DBus::Connection: Add the MenuModel export/unexport methods.José Alburquerque2012-02-234-0/+15
| | | | | | | * gio/src/dbusconnection.{ccg,hg}: Add the two new methods, wrapping the two functions in the GMenuModel exporter API: http://developer.gnome.org/gio/2.31/gio-GMenuModel-exporter.html * tools/m4/convert_gio.m4: Add necessary conversions.
* giomm: MenuModel, MenuAttributeIter: Correct typos.José Alburquerque2012-02-223-2/+10
| | | | | | * gio/src/menuattributeiter.hg (get_next): Remove extra (unneeded) parameter to the _WRAP_METHOD_DOCS_ONLY macro. * gio/src/menumodel.ccg: Whitespace.
* giomm: Add the MenuModel and Menu[Attribute|Link]Iter classes.José Alburquerque2012-02-2210-0/+277
| | | | | | | | | | * gio/src/menuattributeiter.{ccg,hg}: * gio/src/menulinkiter.{ccg,hg}: * gio/src/menumodel.{ccg,hg}: * gio/src/filelist.am: Add the sources for the classes and include them in the list of source files to build. * tools/m4/convert_gio.m4: * tools/m4/convert_glib.m4: Add the necessary conversions.
* Gio::Application: Derive from the ActionGroup interface.José Alburquerque2012-02-222-3/+9
| | | | * gio/src/application.hg: As is done in the C API.
* 2.31.182.31.18Murray Cumming2012-02-213-1/+24
|
* Gio::DBus::Connection: Add the ActionGroup export/unexport methods.José Alburquerque2012-02-203-0/+13
| | | | | | * gio/src/dbusconnection.{ccg,hg}: Add the two new methods, wrapping the two functions in the new GActionGroup exporter API: http://developer.gnome.org/gio/2.31/gio-GActionGroup-exporter.html
* giomm: Add the DBus::ActionGroup class.José Alburquerque2012-02-204-0/+91
| | | | | | * gio/src/dbusactiongroup.{ccg,hg}: Add the sources, wrapping the create() method. * gio/src/filelist.am: Include the sources in the build.
* giomm: Add the RemoteActionGroup interface.José Alburquerque2012-02-206-0/+136
| | | | | | | | | | | * gio/src/remoteactiongroup.{ccg,hg}: * gio/src/filelist.am: Add the sources, wrapping the methods and virtual functions, and include them in the list of files to be built. * gio/src/gio_vfuncs.defs: Add the GRemoteActionGroup virtual functions. * gio/src/applicationcommandline.hg: Add the class documentation block.
* h2def.py: Handle deprecated functions.José Alburquerque2012-02-163-0/+69
| | | | | | | | | | * tools/defs_gen/h2def.py: The g_application_set_action_group() and the g_volume_monitor_adopt_orphan_mount() functions are wrapped but not generated because they have been deprecated in their header files by using a GLIB_DEPRECATED macro before the function declaration. Modify this tool to strip the macro so the functions are recognized. * gio/src/gio_methods.defs: Regenerate so the missing method definitions are included.