NAME
App::MathImage::Glib::Ex::ObjectBits -- misc Glib::Object helpers
SYNOPSIS
use App::MathImage::Glib::Ex::ObjectBits;
FUNCTIONS
$str = App::MathImage::Glib::Ex::ObjectBits::set_property_maybe ($object, $propname, $value, ...)
-
Set each
$propname
to$value
per$object->set_property ($propname, $value)
, if$object
has such a property. If$object
has some of the given properties but not others then just those which exist are set and the rest ignored.This can be used for properties which only exist in a new enough version of the object. For example
Gtk2::Widget
tooltip-text
property is new in Gtk 2.12. Withset_property_maybe
any tooltip settings can be skipped for earlier Gtk.Be careful to avoid typos in the property names. A misspelling will be ignored as a non-existent property.