summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.51.52.51.5Murray Cumming2017-03-132-1/+17
|
* Gio::Application::get_default(): Add refreturnKjell Ahlstedt2017-03-131-1/+1
| | | | Bug 779936
* Remove Glib::unconst()Kjell Ahlstedt2017-03-131-11/+0
| | | | | It's not used by glibmm or gtkmm. It's unnecessary. Use const_cast<>() directly instead.
* tests/glibmm_variant: Add test of Variant<std::tuple>Kjell Ahlstedt2017-03-061-1/+65
| | | | Bug 777791
* Glib::Variant: Add template specialization for std::tupleAlexander Rössler2017-03-061-0/+186
| | | | Bug 777791
* Add Gio::PropertyActionKjell Ahlstedt2017-02-264-0/+154
| | | | | | | * gio/giomm.h: Add propertyaction.h * gio/src/filelist.am: Add propertyaction.hg * gio/src/propertyaction.[ccg|hg]: New files. Required in the "Building Applications" chapter in the gtkmm tutorial.
* 2.51.22.51.2Murray Cumming2017-02-232-1/+21
|
* Revert "Class: A use of range-based for."Murray Cumming2017-02-231-3/+3
| | | | | | | Because the original code starts at 1, not 0, so this was not equivalent. This reverts commit b0a3e10d17f21254c15781bb7ff57736a9bea569.
* Class: A use of range-based for.Murray Cumming2017-02-231-3/+3
|
* Object construction: Add custom class init and instance init functionsKjell Ahlstedt2017-02-159-36/+269
| | | | | | | 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
* ActionMap—Reorder add_action_with_parameter’s argsDaniel Boles2017-02-142-3/+3
| | | | | | This matches e.g. simpleaction.hg and is what I originally intended. https://bugzilla.gnome.org/show_bug.cgi?id=774444
* SimpleAction—doc—Erase wrong line & duplicate wordDaniel Boles2017-02-141-3/+1
| | | | | | In case anyone is as easily confused as me… https://bugzilla.gnome.org/show_bug.cgi?id=778575
* Glib::Variant—Improve documentation of get_maybe()Daniel Boles2017-02-131-4/+5
| | | | | | | 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
* Glib::Variant—Explain how to create “maybe” typesDaniel Boles2017-02-131-2/+5
| | | | | | | | 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
* Glib::Variant—Cosmetically tweak braces & newlinesDaniel Boles2017-02-131-16/+4
| | | | | | | 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
* Glib::Variant: Fix a copy-pasted typo in func docsDaniel Boles2017-02-051-4/+4
|
* Gio::SimpleAction: Move set_state to original posU-eagle\daniel.boles2017-02-021-3/+3
| | | | | | | | | | 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
* Gio::SimpleAction: Make set_state() publicDaniel Boles2017-02-021-4/+0
| | | | | | | | | | | | | | 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
* Gio::Action: Remove unneeded #includes in ccgDaniel Boles2017-02-021-2/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=777953
* Gio::Action: #include <glibmm/variant.h> in hgDaniel Boles2017-02-021-7/+1
| | | | | | | | | | | | | 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
* 2.51.1.22.51.1.2Murray Cumming2017-01-112-3/+49
|
* Visual Studio builds: "Install" the .pdb filesChun-wei Fan2017-01-041-0/+2
| | | | | Since we generate the .pdb files during the build, we should copy them to make debugging glibmm on Windows easier.
* Gio::NetworkMonitor: Derive from Gio::InitableKjell Ahlstedt2016-12-271-4/+4
| | | | | Because GNetworkMonitor requires GInitable. Compare Gio::LoadableIcon which derives from Gio:Icon.
* Glib::Variant: Remove the string specializations of cast_dynamicKjell Ahlstedt2016-12-272-58/+0
| | | | | The Variant<Glib::ustring> and Variant<std::string> specializations of VariantBase::cast_dynamic<>() are no longer used by glibmm.
* Glib: Remove some deprecated APIKjell Ahlstedt2016-12-274-76/+0
| | | | | | * 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>.
* Fix some TODO comments requiring ABI breakKjell Ahlstedt2016-12-275-18/+14
| | | | | | | | * 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.
* Gio::ActionMap: Fix some trivial documentation bugsKjell Ahlstedt2016-12-271-4/+4
|
* Gio::ActionMap: trivially move an _IGNOREDaniel Boles2016-12-261-4/+3
|
* Gio::ActionMap: Improve declaration order/spacingDaniel Boles2016-12-262-27/+31
| | | | | | | This puts several things in more logical places and adds a couple of line breaks that make it easier to see the key sections in the header. https://bugzilla.gnome.org/show_bug.cgi?id=774444
* Gio::ActionMap: Add function to ActivateSlot docDaniel Boles2016-12-261-1/+1
| | | | | | It's used in add_action_with_bool() too. https://bugzilla.gnome.org/show_bug.cgi?id=774444
* Gio::ActionMap: Clarify doc of ActivateWithParameterSlotDaniel Boles2016-12-261-1/+2
| | | | | | This brings it in line with the existing doc comment for ActivateSlot. https://bugzilla.gnome.org/show_bug.cgi?id=774444
* Gio::ActionMap: Fix add_action_with_parameter()Daniel Boles2016-12-262-3/+4
| | | | | | | | | It was not registering the parameter type for the action on create, so when activating the action later and passing a parameter, an assertion failed about the expected and passed parameter types/counts not matching and the parameter was not usable. https://bugzilla.gnome.org/show_bug.cgi?id=774444
* Glib::VariantType: Add get_item_types()Kjell Ahlstedt2016-12-232-3/+32
| | | | | Remove Glib::VariantType::first() and next(). Replace them with get_item_types(). Bug 775741
* Gio: Use Glib::ustring for file attributes of string typeKjell Ahlstedt2016-12-184-25/+12
| | | | | | | | | | | | Use Glib::ustring for values of file attributes of type G_FILE_ATTRIBUTE_TYPE_STRING (UTF-8 encoded string). Changed methods: * gio/src/file.hg: set_attribute_string() * gio/src/fileinfo.hg: set/get_attribute_string(), set/get_display_name(), set/get_edit_name(), set/get_content_type(), get_etag() * gio/src/fileiostream.hg: get_etag() * gio/src/fileoutputstream.hg: get_etag() Bug 615950
* Glib::Dispatcher: Implement the pimpl idiomKjell Ahlstedt2016-12-152-71/+88
| | | | | | | 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::init(): Set the global localeKjell Ahlstedt2016-12-143-9/+98
| | | | | | | | | * 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
* MemoryInputStream: SlotWithData: Make non-copyableMurray Cumming2016-12-121-0/+3
| | | | Noticed by cppcheck.
* Binding: Make a the TransformProp constructor explicit.Murray Cumming2016-12-121-1/+1
|
* BalancedTree: Make a constructor explicit.Murray Cumming2016-12-121-1/+1
|
* Tests: Initialize a member variable.Murray Cumming2016-12-121-1/+1
| | | | Noticed by cppcheck.
* Tests: Make single-parameter constructors explicit.Murray Cumming2016-12-124-4/+4
| | | | Noticed by cppcheck.
* Tests: Remove an unused variable.Murray Cumming2016-12-121-1/+0
| | | | Noticed by cppcheck.
* Examples: Make a single-parameter constructor explicit.Murray Cumming2016-12-121-1/+1
| | | | Noticed by cppcheck.
* Examples: Network: Small const improvement.Murray Cumming2016-12-122-2/+2
| | | | Noticed by cppcheck.
* RemoteActionGroup: Rename some vfuncs to add _full().Murray Cumming2016-12-091-2/+2
| | | | | | | | | | | | | | | | Rename activate_action_vfunc() to activate_action_full_vfunc() ad rename change_action_state_vfunc() to change_action_state_full_vfunc(), matching the underlying C vfuncs. Now that this class derives from ActionGroup, this was causing warnings such as this, at least with clang++: /opt/gnome/include/giomm-2.52/giomm/remoteactiongroup.h:180:18: error: 'Gio::RemoteActionGroup::activate_action_vfunc' hides overloaded virtual function [-Werror,-Woverloaded-virtual] virtual void activate_action_vfunc(const Glib::ustring& action_name, const Glib::VariantBase& parameter, const Glib::VariantBase& platform_data); ^ /opt/gnome/include/giomm-2.52/giomm/actiongroup.h:574:18: note: hidden overloaded virtual function 'Gio::ActionGroup::activate_action_vfunc' declared here: different number of parameters (2 vs 3) virtual void activate_action_vfunc(const Glib::ustring& name, const Glib::VariantBase& parameter);
* 2.51.1.12.51.1.1Murray Cumming2016-12-072-2/+71
|
* Glib::Dispatcher: Don't cast a HANDLE to an int on WindowsKjell Ahlstedt2016-12-061-7/+5
| | | | | * glib/glibmm/dispatcher.cc: When a Windows HANDLE must be cast, cast it to Glib::PollFD::fd_t instead of int. Bug 772074
* PollFD: autodeduce type of fd fieldMarcin Kolny2016-12-062-12/+14
| | | | | | | | * 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
* SettingsSchemaKey: Add missing value/range methodsDaniel Boles2016-12-051-5/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774903
* Gio::DBus::Proxy: Fix memory leak in get_cached_property_names()Kjell Ahlstedt2016-12-051-3/+1
| | | | Bug 775210