diff options
author | Marcin Kolny <marcin.kolny@gmail.com> | 2016-03-21 20:23:11 +0100 |
---|---|---|
committer | Marcin Kolny <marcin.kolny@gmail.com> | 2016-04-01 20:22:34 +0200 |
commit | e17b42eae4d336e0da0ca5bee2613711116cea5f (patch) | |
tree | 300f5b5d721896b28b6e6d55245961e2918494ee /glib/glibmm/property.cc | |
parent | 48f03ef26ff57a96b305c06cfa0b19fd873cb971 (diff) | |
download | glibmm-e17b42eae4d336e0da0ca5bee2613711116cea5f.tar.gz |
Glib::Property: allow to set property nick, blurb and flags.
* .gitignore: add paramflags generated files to ignore list.
* glib/glibmm.h: add paramflags header to include list.
* glib/glibmm/property.{cc|}h: add constructors allowing set nick,
blurb. Add getters for this values.
and flags of property.
* glib/glibmm/value.{cc|h}:
* glib/src/filelist.am: add paramflags to a build.
* glib/src/enums.{ccg|hg}: add GParamFlags enum wrapper.
* glib/glibmm/value_basictypes.{cc|h}.m4: add
overloaded create_param_spec() for setting additional property
parameters.
This patch fixes bug #755256
Diffstat (limited to 'glib/glibmm/property.cc')
-rw-r--r-- | glib/glibmm/property.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/glib/glibmm/property.cc b/glib/glibmm/property.cc index 70859000..45d90b3f 100644 --- a/glib/glibmm/property.cc +++ b/glib/glibmm/property.cc @@ -297,6 +297,20 @@ PropertyBase::get_name() const return Glib::ustring(get_name_internal()); } +Glib::ustring +PropertyBase::get_nick() const +{ + return Glib::convert_const_gchar_ptr_to_ustring( + g_param_spec_get_nick(param_spec_)); +} + +Glib::ustring +PropertyBase::get_blurb() const +{ + return Glib::convert_const_gchar_ptr_to_ustring( + g_param_spec_get_blurb(param_spec_)); +} + void PropertyBase::notify() { |