Add use_pango option for Match (#15)

This commit is contained in:
Ivordir
2023-04-15 05:02:23 +00:00
committed by GitHub
parent ca8255c532
commit 1119137d27
8 changed files with 21 additions and 10 deletions

View File

@@ -30,13 +30,15 @@ pub struct PluginInfo {
/// Represents a match from a plugin
///
/// The `title` and `description` support pango markup.
/// The `title` and `description` support pango markup when `use_pango` is set to true.
/// Refer to [Pango Markup](https://docs.gtk.org/Pango/pango_markup.html) for how to use pango markup.
#[repr(C)]
#[derive(StableAbi, Clone)]
pub struct Match {
pub title: RString,
pub description: ROption<RString>,
/// Whether the title and description should be interpreted as pango markup.
pub use_pango: bool,
/// The icon name from the icon theme in use
pub icon: ROption<RString>,
/// For runners to differentiate between the matches. Not required.