Gtk2::S...eManager(3)

πŸ“¦
version 0.12 Β· 2 versions
, in fedora 43

✨ 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 : default undef : readable) β€” the list of ids of the available style schemes πŸŽ€
  • 'search-path' (Glib::Strv : default undef : readable / writable) β€” the list of directories and files where the style schemes are located πŸ—‚οΈ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Gtk2::SourceView2
  • Glib::Object

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