summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.33.12.33.1Murray Cumming2012-06-123-1/+23
|
* Thread::RecMutex: Don't initialize this as a GStaticMutex.Michał Wróbel2012-06-082-4/+13
| | | | | | | | | | | The previous code (removed here) depended on an implementation detail of GStaticRecMutex, which was changed in this glib commit: http://git.gnome.org/browse/glib/commit/?id=2b281e40f32b7916d856dcc95e6f8fe625fcff03 This change avoids a deadlock with that version of glib. Note that Thread::* is deprecated anyway, which is lucky because we do not know for sure that this fix is enough. Bug #677291
* Glib::add_exception_handler(): Fix misplaced endif.Kjell Ahlstedt2012-06-042-2/+8
| | | | | * glib/glibmm/exceptionhandler.h: Fix a misplaced endif, which has made Doxygen exclude add_exception_handler() from the documentation.
* Application: Pass 0 (NULL) rather than to GApplication.Murray Cumming2012-05-282-1/+8
| | | | | * gio/src/application.ccg: It is annoying that GApplication (and other C code) distinguishes, of course.
* Gio::Application: Allow the application ID to be empty.Murray Cumming2012-05-273-3/+24
| | | | | | | * configure.ac: Depend on the latest unstable glib release (2.33.1). * gio/src/application.hg: constructor, create(): Add a default (empty string) parameter for the application ID, because this may now be empty if you do not need the full GApplication functionality.
* Gio: Start wrapping GResource.Kalev Lember2012-04-224-0/+67
| | | | | | | | * gio/src/resource.[hg|ccg]: Add Gio::ResourceError so that the resource handling functions in gtkmm could use it. The rest of the GResource API is unwrapped. * gio/src/filelist.am: List new resource.hg file. Bug #674545.
* Fix typos in miscutils.Krzesimir Nowak2012-04-172-2/+9
| | | | | * glib/glibmm/miscutils.cc: Return early from get_system_data_dirs() and get_system_config_dirs() when C function returns NULL.
* 2.32.02.32.0Murray Cumming2012-04-103-2/+25
|
* gmmproc: Add macro _CUSTOM_CTOR_CAST in _CLASS_BOXEDTYPE.Kjell Ahlstedt2012-04-102-0/+17
| | | | | * tools/m4/class_boxedtype.m4: Add macro _CUSTOM_CTOR_CAST. Bug #511136, comment 20.
* Fix Visual C++ project FilesChun-wei Fan2012-04-109-0/+416
| | | | | | * Fix Visual C++ projects for glibmm and giomm as numerous sources have been added for the addition of APIs so that these libraries can be properly built
* Glib::Dispatcher: Don't send messages to a deleted Dispatcher.Kjell Ahlstedt2012-04-043-12/+91
| | | | | | | * glib/glibmm/dispatcher.h: Add missing usage rules. * glib/glibmm/dispatcher.cc: Avoid delivering messages to deleted Dispatchers. Don't block message delivery while a second main loop is running. Bug #651942.
* Make SignalTimeout,SignalIdle::connect_once() more thread safe.Kjell Ahlstedt2012-04-042-7/+8
| | | | | * glib/glibmm/main.cc: Call SourceConnectionNode::install() before g_source_attach(). Suggested by Chris Vine. Bug #396963 comments 15-18.
* Some improvements to the documentation in the previous commit.Murray Cumming2012-04-032-51/+47
| | | | * glib/glibmm/property.h:
* Document Glib::Property and Glib::PropertyBaseMark Vender2012-04-032-2/+93
| | | | | * glib/glibmm/property.h: Bug #673291
* Slight rewrite of the documenation in the previous commit.Murray Cumming2012-04-032-1/+7
| | | | * tools/m4/class_interface.m4:
* gmmproc: Generate the documentation of default constructors of interface ↵Mark Vender2012-04-032-3/+14
| | | | | | classes. Bug #673213
* Make SignalTimeout,SignalIdle::connect_once() more thread safe.Kjell Ahlstedt2012-04-032-6/+59
| | | | | * glib/glibmm/main.cc: Don't create a sigc::connection in the connect_once() methods. Bug #396963.
* Regenerate .defs files.Murray Cumming2012-03-308-23/+184
| | | | | | | | | | | * gio/src/gio_docs.xml: * gio/src/gio_enums.defs: * gio/src/gio_signals.defs: * glib/src/glib_docs.xml: * glib/src/glib_enums.defs: * glib/src/glib_functions.defs: * glib/src/gobject_functions.defs: Regenereated using the scripts.
* 2.31.222.31.22Murray Cumming2012-03-283-3/+21
|
* 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.