| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
It is provided mainly for consistency - it simply calls gobj_copy()
method.
|
|
|
|
|
|
| |
It is not provided in gir anyway. If we want to provide it then we
will have to add a way to inject enum values into _WRAP_ENUM or
_WRAP_GERROR.
|
|
|
|
|
|
| |
We are not wrapping it anyway. But if we want to do it, then we will
have to provide some kind of override or addition for some API wrapped
there - some of it is not available in gir files.
|
|\
| |
| |
| | |
Also, removed lots of files.
|
| |
| |
| |
| |
| | |
* glib/glibmm/exceptionhandler.h: Fix a misplaced endif, which has made
Doxygen exclude add_exception_handler() from the documentation.
|
| |
| |
| |
| |
| | |
* glib/glibmm/miscutils.cc: Return early from get_system_data_dirs()
and get_system_config_dirs() when C function returns NULL.
|
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| | |
* glib/glibmm/main.cc: Call SourceConnectionNode::install() before
g_source_attach(). Suggested by Chris Vine. Bug #396963 comments 15-18.
|
| |
| |
| |
| | |
* glib/glibmm/property.h:
|
| |
| |
| |
| |
| | |
* glib/glibmm/property.h:
Bug #673291
|
| |
| |
| |
| |
| | |
* glib/glibmm/main.cc: Don't create a sigc::connection in the connect_once()
methods. Bug #396963.
|
| |
| |
| |
| |
| | |
* glib/glibmm/class.cc: registered_derived_type(): Use (void*)0 instead
of NULL to avoid a missing sentintel warning.
|
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| |
| | |
* glib/glibmm/main.h: Mention that returning false from a bool-returning
handler disconnects the handler. Other minor changes of the descriptions.
Bug #669906.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| | |
* glib/glibmm/dispatcher.cc: Mention the new Threads:: namespace in the
ifdefed win32 code.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| |
| | |
* glib/glibmm/class.cc: Add casts because GTypeQuery::class_size
and instance_size are guint but GTypeInfo::class_size and
instance_size are guint16.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| | |
|
|/
|
|
|
|
|
|
| |
glib/glibmm/wrap.h: While Glib::unwrap() for pointers (be them smart
or plain C) makes sense, because it does checking for NULL pointers,
then Glib::unwrap() for references is just a convenience addition,
so I do not have to differentiate much when generating code basing
on whether passed value is a reference or a pointer.
|
| |
|
|
|
|
|
|
| |
* glib/glibmm/arrayhandle.h: Put operator std::container methods
definitions inside class template definition. Also added decrementation
operators for ArrayHandleIterator for MSVC 2005.
|
|
|
|
|
|
|
| |
* glib/glibmm/stringutils.cc: Glib::Ascii::strtod():
* glib/src/variant.[hg|ccg]: get(): Correct the range check. This would
previously not have caught all wrong ranges.
Thanks to Michael Edwards.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/vectorutils.[h|cc]: Don't crash in compute_array_size2, when
NULL is passed - in that case just return 0. Also, array_to_vector method
return empty vector in such case.
* glib/glibmm/arrayhandle.[h|cc]: Set array_size to zero if passed array
is NULL.
* tests/glibmm_null_vectorutils/main.cc: New test for NULL arrays and lists
for vectorutils.
* tests/glibmm_null_containerhandle/main.cc: New test for NULL arrays and lists
for containerhandles.
* tests/Makefile.am: Added new tests to build.
Spotted by Kalev Lember. Bug #645245.
|
| |
|
|
|
|
|
| |
* glib/glibmm/miscutils.h: Add @newin{2,28} to the new build_filename()
overloads.
|
|
|
|
|
| |
Extended build_filename() to accept up to nine parameters.
Added a new testcase in tests/glibmm_buildfilename.
|
|
|
|
|
|
| |
* glib/glibmm/arrayhandle.h: Remove some typename keywords to avoid this
compiler warning:
"error: using ‘typename’ outside of template"
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/arrayhandle.h: Added specialization for bool ArrayHandle.
This is needed because std::vector<bool> is a specialization for which
iterators does not return a reference to actual value it holds.
* glib/glibmm/arrayhandle.cc: New file implementing destructor of
bool ArrayHandle - the only method that is not inlined.
* tests/glibmm_bool_arrayhandle/main.cc: New file implementing test
checking if bool ArrayHandle actually works.
* tests/Makefile.am: Added new test to build.
|
|
|
|
|
|
| |
* glib/glibmm/vectorutils.h: Documented important parts of *Keeper classes
and corrected examples in *Handler classes. The documentation mostly tries
to explain memory management.
|
|
|
|
|
|
| |
* glib/glibmm/vectorutils.h: Some simple documentation about the *Handler
utility classes, though I need to correct the example code and explain the
memory mangement when that is clear to me.
|
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/arrayhandle.h:
* glib/glibmm/listhandle.h:
* glib/glibmm/slisthandle.h: Mention that we try not to use these now,
though we cannot actually deprecate them yet without forcing other libraries
such as pangomm to deprecate the methods that use them, which they cannot
really do because they cannot just add a method overload without introducing
ambiguity.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/vectorutils.[h|cc]: New files implementing an array, list,
slist <-> std::vector convertions. It implements also a specialization
for bool types.
* glib/glibmm.h: Include vectorutils.h.
* glib/glibmm/filelist.am: Added vectorutils to build.
* tests/glibmm_vector/main.cc: New test for general vectorutils check.
* tests/glibmm_bool_vector/main.cc: New test checking bool specializations.
* tests/Makefile.am: Added above tests to build system.
|
|
|
|
|
| |
This reverts commit 590000d08fa94a72d042ac1143fa042c90cf9705.
Initializing glibmm in ObjectBase is not actually necessary.
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/objectbase.cc: Constructors: Call Glib::init(), making it
unnecessary to call this explicitly before instantiating a Glib::Object.
* gio/src/application.ccg: Make sure that giomm can be used as soon as a
Gio::Application has been instantiated.
This should let use just instantiate a Gtk::Application
instead of using Gtk::Main.
|
| |
|
|
|
|
|
|
| |
* glib/glibmm/refptr.h: Add operators <, <=, >, >=
that compare RefPtrs by their underlying pointer.
This makes RefPtr work with sorted containers (e.g. std::set<RefPtr<T> >)
|
|
|
|
|
|
| |
* glib/glibmm/objectbase.cc: A parameter passed to g_warning() in
destroy_notify_callback() describing a name of GObject should be indeed
a name, not a pointer to GObject.
|
| |
|
|
|
|
|
| |
* glib/glibmm/main.[h|cc]: get_time(): Now returns a gint64 instead of
a GTimeSpec output parameter.
|
|
|
|
|
|
| |
* glib/glibmm/main.[h|cc]: get_current_time(): undef G_DISABLE_DEPRECATED
so this can build. Deprecate it to match the C API. Add get_time() which
replaces it. However, we should replace our use of it, which seems difficult.
|
|
|
|
|
|
|
|
| |
* glib/glibmm/miscutils.[h|cc]: Wrappping g_get_system_data_dirs() and
g_get_system_config_dirs(), which were actually added in glib 2.6 but
not noticed by us until now.
Notice that these return std::vector<> instead of ArrayHandle, because we
have decided to do that for new APIs.
|
|
|
|
|
|
|
|
| |
* glib/glibmm/ustring.cc: Restore the last block that was accidentally
removed by the optional API #ifdef removal script. There were three.
Two were restored (GNOME bug #622030), but one (final one) was not.
This commit does that, restoring the file to its original condition
without the optional API #ifdefs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/src/glib_functions.defs: Regenerate to get the GVariant
functions.
* glib/src/variant.ccg:
* glib/src/variant.hg:
* glib/src/filelist.am: Add the new .hg and .ccg files and mention
them. Wrapping is now done using gmmproc instead of handwriting the
methods.
* glib/glibmm/variant.cc:
* glib/glibmm/variant.h:
* glib/glibmm/filelist.am: Remove these files and their mentions
because now they are written as .hg and .ccg files.
* glib/src/variant_basictypes.h.m4: Add docs.
|