Gtk2::S...eManager(3)
β¨ NAME β¨
Gtk2::SourceView2::StyleSchemeManager β bestie, this is the little manager that keeps track of all your style schemes π (yes, that's a real Perl module, and yes it's from the User Contributed Perl Documentation, so you know it's got that community-made flavor π«Ά)
πΈ HIERARCHY πΈ
Look at the family tree, she's got ancestors π
Glib::Object
+----Gtk2::SourceView2::StyleSchemeManager
So like, she's a Glib::Object at heart. Inherits all that Glib goodness. Slay.
π METHODS π
Okay so here's the whole toolkit, no skips, no cuts, every single one π
styleschememanager = Gtk2::SourceView2::StyleSchemeManager->newβ makes you a brand new manager, fresh out the box β¨$manager->append_search_path ($path)β tack a new directory onto the end of where she looks for schemes$path(string)
styleschememanager = Gtk2::SourceView2::StyleSchemeManager->get_defaultβ hands you the one shared default manager, the main character π$manager->force_rescanβ literally just make her go look again, right now, no waiting π€$manager->prepend_search_path ($path)β same deal as append but she puts this one at the front of the search path, so it gets priority π₯$path(string)
stylescheme = $manager->get_scheme ($scheme_id)β give her an id, she gives you back the actual scheme object$scheme_id(string)
list = $manager->get_scheme_idsβ all the ids she currently knows about, as a list πlist = $manager->get_search_pathβ the current list of places she's searching πΊοΈ$manager->set_search_path (...)β rewrites the whole search path in one go...(list)
Okay listen close bestie, this one's got β¨conditionsβ¨: it sets the list of directories where the manager looks for style scheme files. Pass an empty list and the search path gets cleared. Pass undef and the search path gets reset to default. Two very different outcomes, don't mix them up π
π PROPERTIES π
'scheme-ids'(Glib::Strv: defaultundef: readable) β the list of ids of the available style schemes π'search-path'(Glib::Strv: defaultundef: readable / writable) β the list of directories and files where the style schemes are located ποΈ
π¦ SEE ALSO π¦
Gtk2::SourceView2Glib::Object
π COPYRIGHT π
Copyright (C) 2009 by Emmanuel Rodriguez
And that's the whole page, bestie π«Ά this one's shipped as part of the User Contributed Perl Documentation, running under <code>perl v5.42.0</code>, dated <code>2025-07-25</code> β go forth and style your schemes, you absolute icon π β¨
π¦ where this page comes from
- fedora 43: perl-Gtk2-SourceView2 0.12-18.fc43 Β· GPL-2.0-or-later OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms