[gtkmm] IconTheme: lookup_icon(), choose_icon(): Add default 0 for flags.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] IconTheme: lookup_icon(), choose_icon(): Add default 0 for flags.
- Date: Tue, 30 Jun 2015 09:34:37 +0000 (UTC)
commit 22d30dc31c51f47731aa7b508197e258cdf15088
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Jun 30 11:29:21 2015 +0200
IconTheme: lookup_icon(), choose_icon(): Add default 0 for flags.
load_icon() already had it. We had not noticed the need for it until
now because people always passed ICON_LOOKUP_USE_BUILTIN just in case,
but that (well, the functions that make it useful) is now deprecated.
gtk/src/icontheme.hg | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/src/icontheme.hg b/gtk/src/icontheme.hg
index 3c9505d..a5103ca 100644
--- a/gtk/src/icontheme.hg
+++ b/gtk/src/icontheme.hg
@@ -61,14 +61,14 @@ public:
std::vector<int> get_icon_sizes(const Glib::ustring& icon_name) const;
_IGNORE(gtk_icon_theme_get_icon_sizes)
- _WRAP_METHOD(IconInfo lookup_icon(const Glib::ustring& icon_name, int size, IconLookupFlags flags) const,
gtk_icon_theme_lookup_icon)
- _WRAP_METHOD(IconInfo lookup_icon(const Glib::ustring& icon_name, int size, int scale, IconLookupFlags
flags) const, gtk_icon_theme_lookup_icon_for_scale)
- _WRAP_METHOD(IconInfo lookup_icon(const Glib::RefPtr<const Gio::Icon>& icon, int size, IconLookupFlags
flags) const, gtk_icon_theme_lookup_by_gicon)
- _WRAP_METHOD(IconInfo lookup_icon(const Glib::RefPtr<const Gio::Icon>& icon, int size, int scale,
IconLookupFlags flags) const, gtk_icon_theme_lookup_by_gicon_for_scale)
+ _WRAP_METHOD(IconInfo lookup_icon(const Glib::ustring& icon_name, int size, IconLookupFlags flags =
(IconLookupFlags)0) const, gtk_icon_theme_lookup_icon)
+ _WRAP_METHOD(IconInfo lookup_icon(const Glib::ustring& icon_name, int size, int scale, IconLookupFlags
flags = (IconLookupFlags)0) const, gtk_icon_theme_lookup_icon_for_scale)
+ _WRAP_METHOD(IconInfo lookup_icon(const Glib::RefPtr<const Gio::Icon>& icon, int size, IconLookupFlags
flags = (IconLookupFlags)0) const, gtk_icon_theme_lookup_by_gicon)
+ _WRAP_METHOD(IconInfo lookup_icon(const Glib::RefPtr<const Gio::Icon>& icon, int size, int scale,
IconLookupFlags flags = (IconLookupFlags)0) const, gtk_icon_theme_lookup_by_gicon_for_scale)
#m4 _CONVERSION(`const std::vector<Glib::ustring>&',`const gchar*[]',`const_cast<const
gchar**>(Glib::ArrayHandler<Glib::ustring>::vector_to_array($3).data ())')
- _WRAP_METHOD(IconInfo choose_icon(const std::vector<Glib::ustring>& icon_names, int size, IconLookupFlags
flags), gtk_icon_theme_choose_icon)
- _WRAP_METHOD(IconInfo choose_icon(const std::vector<Glib::ustring>& icon_names, int size, int scale,
IconLookupFlags flags), gtk_icon_theme_choose_icon_for_scale)
+ _WRAP_METHOD(IconInfo choose_icon(const std::vector<Glib::ustring>& icon_names, int size, IconLookupFlags
flags = (IconLookupFlags)0), gtk_icon_theme_choose_icon)
+ _WRAP_METHOD(IconInfo choose_icon(const std::vector<Glib::ustring>& icon_names, int size, int scale,
IconLookupFlags flags = (IconLookupFlags)0), gtk_icon_theme_choose_icon_for_scale)
_WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> load_icon(const Glib::ustring& icon_name, int size, IconLookupFlags
flags = (IconLookupFlags)0) const, gtk_icon_theme_load_icon, errthrow)
_WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> load_icon(const Glib::ustring& icon_name, int size, int scale,
IconLookupFlags flags = (IconLookupFlags)0) const, gtk_icon_theme_load_icon_for_scale, errthrow)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]