2017-02-23 Murray Cumming 2.51.2 2017-02-23 Murray Cumming Revert "Class: A use of range-based for." Because the original code starts at 1, not 0, so this was not equivalent. This reverts commit b0a3e10d17f21254c15781bb7ff57736a9bea569. 2017-02-23 Murray Cumming Class: A use of range-based for. 2017-02-15 Kjell Ahlstedt Object construction: Add custom class init and instance init functions 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 2017-02-14 Daniel Boles ActionMap—Reorder add_action_with_parameter’s args This matches e.g. simpleaction.hg and is what I originally intended. https://bugzilla.gnome.org/show_bug.cgi?id=774444 2017-02-14 Daniel Boles SimpleAction—doc—Erase wrong line & duplicate word In case anyone is as easily confused as me… https://bugzilla.gnome.org/show_bug.cgi?id=778575 2017-02-13 Daniel Boles Glib::Variant—Improve documentation of get_maybe() 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 2017-02-13 Daniel Boles Glib::Variant—Explain how to create “maybe” types It’s not exactly intuitive why the *_maybe() methods are kept in ContainerBase, nor that Variant 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 2017-02-13 Daniel Boles Glib::Variant—Cosmetically tweak braces & newlines 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 2017-02-05 Daniel Boles Glib::Variant: Fix a copy-pasted typo in func docs 2017-02-02 U-eagle\daniel.boles Gio::SimpleAction: Move set_state to original pos If I’d realised there was a specific commit that protected this, I would have reverted it, rather than doing it manually in my previous commit. Completes reversion of commit b7431bca6ccbd9f918b5ef73bae65a1c7828e7e0 – “Gio::SimpleAction: Make set_state() protected.” https://bugzilla.gnome.org/show_bug.cgi?id=777953 2017-02-02 Daniel Boles Gio::SimpleAction: Make set_state() public This is needed to apply the requested state in a custom handler for signal_change_state(). It was protected on an assumption that when the C doc for g_simple_action_set_state() said “This should only be called by the implementor of the action”, it meant the implementor of a subclass. But the C docs for signal change-state are clear that it means the implementor of the signal handler. Without such a user being able to call set_state(), they can’t apply the new state, unless they subclass SimpleAction, which is a lot to require for such a simple case as this. https://bugzilla.gnome.org/show_bug.cgi?id=777953 2017-02-02 Daniel Boles Gio::Action: Remove unneeded #includes in ccg https://bugzilla.gnome.org/show_bug.cgi?id=777953 2017-02-02 Daniel Boles Gio::Action: #include in hg Currently, it is included indirectly, via 3 other headers. This is brittle. Without that, users of action.h would have to manually include variant.h to use methods returning the forward-declared VariantBase, which isn’t very helpful. Plus, the header uses types like Variant<> templates and VariantContainerBase, which were never forward-declared. Including it directly makes the dependency more obvious and less brittle and spares us from having to write a bunch more forward-declarations. https://bugzilla.gnome.org/show_bug.cgi?id=777953