diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2015-03-05 15:47:34 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2015-03-05 15:47:34 +0100 |
commit | ed3503124133625407133236c58faec78f476e38 (patch) | |
tree | 05c7f81427eb8320c1bcf17be4a620f2e7de9684 | |
parent | fdc374adad2d72fb693eed508170a6e2e06fa8a8 (diff) | |
download | glibmm-ed3503124133625407133236c58faec78f476e38.tar.gz |
Gio::ThemedIcon: Change parameter name to use_default_fallbacks
* gio/src/themedicon.[hg|ccg]: Change parameter name use_default_callbacks
to use_default_fallbacks in constructor and create().
-rw-r--r-- | gio/src/themedicon.ccg | 6 | ||||
-rw-r--r-- | gio/src/themedicon.hg | 28 |
2 files changed, 21 insertions, 13 deletions
diff --git a/gio/src/themedicon.ccg b/gio/src/themedicon.ccg index 3a6d5402..af938ee9 100644 --- a/gio/src/themedicon.ccg +++ b/gio/src/themedicon.ccg @@ -1,5 +1,3 @@ -// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*- - /* Copyright (C) 2007 The gtkmm Development Team * * This library is free software; you can redistribute it and/or @@ -22,9 +20,9 @@ namespace Gio { -ThemedIcon::ThemedIcon(const std::string& iconname, bool use_default_callbacks) +ThemedIcon::ThemedIcon(const std::string& iconname, bool use_default_fallbacks) : - _CONSTRUCT("name", iconname.c_str(), "use-default-fallbacks", gboolean(use_default_callbacks)) + _CONSTRUCT("name", iconname.c_str(), "use-default-fallbacks", gboolean(use_default_fallbacks)) {} } //namespace Gio diff --git a/gio/src/themedicon.hg b/gio/src/themedicon.hg index d5a0ea2a..c906b22c 100644 --- a/gio/src/themedicon.hg +++ b/gio/src/themedicon.hg @@ -1,5 +1,3 @@ -// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*- - /* Copyright (C) 2007 The gtkmm Development Team * * This library is free software; you can redistribute it and/or @@ -28,7 +26,7 @@ _PINCLUDE(glibmm/private/object_p.h) namespace Gio { -/** Icon theming support +/** Icon theming support. * ThemedIcon is an implementation of Gio::Icon that supports icon themes. * ThemedIcon contains a list of all of the icons present in an icon * theme, so that icons can be looked up quickly. ThemedIcon does @@ -47,21 +45,33 @@ class ThemedIcon _IMPLEMENTS_INTERFACE(Icon) protected: - /** Creates a new themed icon for @ iconname, and optionally all the names that can be created by shortening @a iconname at '-' characters. + /** Creates a new themed icon for @a iconname, and optionally all the names that can be created by shortening @a iconname at '-' characters. * * @param iconname A string containing an icon name. - * @param use_default_callbacks Whether to use all the names that can be created by shortening @a iconname at '-' characters. + * @param use_default_fallbacks Whether to use all the names that can be created by shortening @a iconname at '-' characters. */ - explicit ThemedIcon(const std::string& iconname, bool use_default_callbacks = false); + explicit ThemedIcon(const std::string& iconname, bool use_default_fallbacks = false); _IGNORE(g_themed_icon_new, g_themed_icon_new_with_default_fallbacks) public: - /** Creates a new themed icon for @ iconname, and optionally all the names that can be created by shortening @a iconname at '-' characters. + /** Creates a new themed icon for @a iconname, and optionally all the names that can be created by shortening @a iconname at '-' characters. + * + * For example + * @code + * Glib::RefPtr<Gio::ThemedIcon> icon = Gio::ThemedIcon::create("gnome-dev-cdrom-audio", true); + * @endcode + * is equivalent to + * @code + * Glib::RefPtr<Gio::ThemedIcon> icon = Gio::ThemedIcon::create("gnome-dev-cdrom-audio", false); + * icon->append_name("gnome-dev-cdrom"); + * icon->append_name("gnome-dev"); + * icon->append_name("gnome"); + * @endcode * * @param iconname A string containing an icon name. - * @param use_default_callbacks Whether to use all the names that can be created by shortening @a iconname at '-' characters. + * @param use_default_fallbacks Whether to use all the names that can be created by shortening @a iconname at '-' characters. */ - _WRAP_CREATE(const std::string& iconname, bool use_default_callbacks = false) + _WRAP_CREATE(const std::string& iconname, bool use_default_fallbacks = false) //TODO: GIcon *g_themed_icon_new_from_names (char **iconnames, int len); |