| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Now that RefPtr is really a std::shared_ptr<>, we should use
std::weak_ref<> instead.
Note that a std::weak_ptr<> tells you nothing about whether
the underlying GObject is still alive, which Glib::RefPtr did.
It just tells you whether our std::shared_ptr<> still holds
a reference to it. That's why I removed one of the checks in
tests/giomm_listmodel/main.cc.
|
|
|
|
| |
Instead of Glib::RefPtr<>::cast_dynamic().
|
| |
|
|
|
|
|
|
|
|
| |
Specifying a Deleter in make_refptr_for_instance().
And changing RefPtr::cast_dynamic<>() to std::dynamic_pointer_cast<>().
The glibmm_refptr test then becomes rather silly, and should maybe
just be removed.
|
| |
|
|
|
|
|
|
|
| |
By adding a private IOSource constructor (and create()), accessible
via a friend declaration, that takes the raw GIOChannel.
See https://bugzilla.gnome.org/show_bug.cgi?id=755037#c20
|
|
|
|
|
|
| |
This is necessary for C++17 which completely removes dynamic
exception specifications.
See https://bugzilla.redhat.com/show_bug.cgi?id=1438766
|
|
|
|
|
|
|
| |
Instead of (deprecated) g_object_newv() and (deprecated) GParameter.
This seems to work. It is meant to be the simplest possible change.
I would like to translate this code properly to C++ now that I've noticed it.
|
|
|
|
|
|
| |
This is necessary for C++17 which completely removes dynamic
exception specifications.
See https://bugzilla.redhat.com/show_bug.cgi?id=1438766
|
|
|
|
|
|
| |
The GOptionGroup contains a pointer to the Glib::OptionGroup wrapper.
That pointer can't be changed. Copying (adding a ref) or moving a
GOptionGroup to a second Glib::OptionGroup would be problematic.
|
|
|
|
|
|
|
| |
So we can use the 2.51/52 version numbers for more stable releases.
We don't need to release a stable ABI-parallel glibmm until
we need to release gtkmm 4.0, and that won't happen until GTK+ 4.0.0
happens, and we don't know when that might be.
|
|
|
|
|
| |
Each header file shall include all header files that it depends on.
Checked with tools/test_scripts/testheaders.sh
|
|
|
|
|
| |
Should have been done by commit 8c37e116a6a3a862b7574fa607cf69b3b6267dfe,
I assume.
|
|
|
|
|
|
|
| |
Remove the OptionGroup& parameter in on_pre_parse(), on_post_parse() and
on_error(). It's unnecessary. It's always identical to *this.
Add a const Error& parameter to on_error(). It's an input parameter with
information about an error that has occurred in OptionContext::parse().
|
|
|
|
|
|
|
| |
GOptionGroup is refcounted. Glib::OptionGroup::has_ownership is unnecessary.
Replace gobj_give_ownership() by gobj_copy().
Glib::OptionGroup is not made refcounted, for reasons explained in a
comment in optiongroup.hg.
|
| |
|
| |
|
|
|
|
|
| |
We don't use them in glibmm and gtkmm and I have never heard of anybody
ever using them.
|
|
|
|
|
|
| |
Using Glib::ListHandler<>::list_to_array() and
Glib::ListHandler<>::list_to_vector() instead, and only in the
implementation instead of in the API.
|
|
|
|
|
|
| |
Using Glib::ListHandler<>::list_to_array() and
Glib::ListHandler<>::list_to_vector() instead, and only in the
implementation instead of in the API.
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm.h: Remove streamiochannel.h.
* glib/glibmm/filelist.am: Remove streamiochannel.[cc|h].
* glib/glibmm/streamiochannel.[cc|h]: Removed files.
* glib/src/iochannel.[ccg|hg]: Remove the default constructor and the
deprecated virtual functions. In .ccg, remove the local GlibmmIOChannel
class. It's useless without the virtual functions, as is the default ctor.
|
|
|
|
|
|
| |
Using Glib::ArrayHandler<>::vector_to_array() and
Glib::ArrayHandler<>::array_to_vector() instead, and only in the
implementatoin instead of in the API.
|
|
|
|
|
|
| |
Using Glib::ArrayHandler<>::vector_to_array() and
Glib::ArrayHandler<>::array_to_vector() instead, and only in the
implementatoin instead of in the API.
|
|
|
|
|
|
| |
Using Glib::ArrayHandler<>::vector_to_array() and
Glib::ArrayHandler<>::array_to_vector() instead, and only in the
implementatoin instead of in the API.
|
|
|
|
|
|
| |
Using Glib::ArrayHandler<>::vector_to_array() and
Glib::ArrayHandler<>::array_to_vector() instead, and only in the
implementatoin instead of in the API.
|
|
|
|
|
|
| |
Using Glib::ArrayHandler<>::vector_to_array() and
Glib::ArrayHandler<>::array_to_vector() instead, and only in the
implementatoin instead of in the API.
|
| |
|
|
|
|
|
|
| |
Using Glib::ArrayHandler<>::vector_to_array() and
Glib::ArrayHandler<>::array_to_vector() instead, and only in the
implementatoin instead of in the API.
|
|
|
|
|
|
|
|
|
|
|
| |
make_valid replaces all non-UTF8 characters with replacement
character (U+FFFD). Allows manipulating with ustring after you find
out by ustring::validate() that it's not an UTF-8 string and you
need to rescue it somehow.
This wraps g_utf8_make_valid().
Bug #780075
|
|
|
|
|
| |
It's not used by glibmm or gtkmm. It's unnecessary.
Use const_cast<>() directly instead.
|
|
|
|
| |
Bug 777791
|
|
|
|
|
|
|
| |
Because the original code starts at 1, not 0, so this was not
equivalent.
This reverts commit b0a3e10d17f21254c15781bb7ff57736a9bea569.
|
| |
|
|
|
|
|
|
|
| |
Make it possible for named custom types to register additions to the
class init function and to register an instance init function.
An extra class init function is useful in Gtk::WidgetCustomDraw and
Gtk::WidgetCustomSnapshot. Bug 775348
|
|
|
|
|
|
|
| |
Clarify what is set and returned, and use lower case “nothing” to match
how that must be written in GVariant text format, à la GSettings, etc.
https://bugzilla.gnome.org/show_bug.cgi?id=778219
|
|
|
|
|
|
|
|
| |
It’s not exactly intuitive why the *_maybe() methods are kept in
ContainerBase, nor that Variant<VariantBase> inherits from the former
and is the way to get a maybe-typed Variant in glibmm. Let’s fix that!
https://bugzilla.gnome.org/show_bug.cgi?id=778219
|
|
|
|
|
|
|
| |
Donʼt use braces for single-line blocks, and do if the other side of an
if/else already did. Also, get rid of a couple of extraneous newlines.
https://bugzilla.gnome.org/show_bug.cgi?id=778219
|
| |
|
|
|
|
|
| |
The Variant<Glib::ustring> and Variant<std::string> specializations of
VariantBase::cast_dynamic<>() are no longer used by glibmm.
|
|
|
|
|
|
| |
* glib/glibmm/refptr.h: Remove clear().
* glib/glibmm/utility.h: Remove GLIBMM_INITIALIZE_STRUCT and ScopedPtr.
* glib/src/value_basictypes.[cc|h].m4: Remove Value<char>.
|
|
|
|
|
|
|
|
| |
* gio/src/gio_vfuncs.defs: Add GAsyncResult::is_tagged():
* gio/src/action.hg: get_state_hint_variant() returns VariantContainerBase.
* gio/src/actiongroup.hg: Remove the deprecated get_action_state_hint().
* gio/src/asyncresult.hg: Add is_tagged_vfunc().
* glib/src/checksum.hg: update(): The length parameter is a gssize.
|
|
|
|
|
| |
Remove Glib::VariantType::first() and next(). Replace them with
get_item_types(). Bug 775741
|
|
|
|
|
|
|
| |
Store only a pointer to the private member data in the Dispatcher class.
The most important reason for the pimpl idiom (pointer to implementation)
in this case is that the deletion of the private data can be delayed until
it's safe to delete it. Bug 651942
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/init.[cc|h]: Add set/get_init_to_users_preferred_locale().
Let Glib::init() set the C andC++ global locale to the user's preferred locale,
or (if Glib::set_init_to_users_preferred_locale(false) has been called) set
the C++ locale to be equal to the C locale.
* glib/glibmm/ustring.h: Add to the documentation that Glib::init() sets the
global locale. Bug 661588
|
| |
|
| |
|
|
|
|
|
| |
* glib/glibmm/dispatcher.cc: When a Windows HANDLE must be cast, cast it
to Glib::PollFD::fd_t instead of int. Bug 772074
|
|
|
|
|
|
|
|
| |
* glib/glibmm/main.[h|cc]: file descriptor to poll can be either of gint,
or gint64 type, depending on the platform. glibmm should follow this
rule as well.
https://bugzilla.gnome.org/show_bug.cgi?id=772074
|
|
|
|
|
|
| |
* glib/glibmm/main.[cc|h]: Replace the std::map containing
ExtraSourceData with instance data in Source. The map was just a way
of avoiding an ABI break, but now we can break ABI. Bug 561885
|
|
|
|
|
| |
and add connect_impl_(bool notify, const sigc::slot_base& slot, bool after).
SignalProxyNormal then becomes more like SignalProxyDetailedBase.
|