Top | ![]() |
![]() |
![]() |
![]() |
FontManagerSelections * | font_manager_selections_new () |
gboolean | font_manager_selections_load () |
gboolean | font_manager_selections_save () |
gchar * | font_manager_selections_get_filepath () |
char * | config-dir | Read / Write |
char * | target-element | Read / Write |
char * | target-file | Read / Write |
GObject ╰── FontManagerStringSet ╰── FontManagerSelections ├── FontManagerDirectories ╰── FontManagerReject
FontManagerSelections *
font_manager_selections_new (void
);
A newly created FontManagerSelections.
Free the returned object using
. g_object_unref()
[transfer full]
gboolean
font_manager_selections_load (FontManagerSelections *self
);
Load target_file
from config_dir
gboolean
font_manager_selections_save (FontManagerSelections *self
);
Saves current selections to target_file
in config_dir
gchar *
font_manager_selections_get_filepath (FontManagerSelections *self
);
#define FONT_MANAGER_TYPE_SELECTIONS (font_manager_selections_get_type())
struct FontManagerSelectionsClass { GObjectClass parent_class; void (* changed) (FontManagerSelections *self); gboolean (* load) (FontManagerSelections *self); gboolean (* save) (FontManagerSelections *self); void (* parse_selections) (FontManagerSelections *self, xmlNode *selections); void (* write_selections) (FontManagerSelections *self, FontManagerXmlWriter *writer); xmlNodePtr (* get_selections) (FontManagerSelections *self, xmlDocPtr doc); };
emitted whenever the configuration has changed on disk |
||
load configuration from file |
||
save configuration to file |
||
parse fontconfig selections |
||
write fontconfig selections |
||
returns an xmlNodePtr to the selectfont element |
“config-dir”
property “config-dir” char *
Should be set to one of the directories monitored by Fontconfig for configuration files and writeable by the user.
Owner: FontManagerSelections
Flags: Read / Write
Default value: NULL
“target-element”
property “target-element” char *
Valid values: acceptfont or rejectfont
Owner: FontManagerSelections
Flags: Read / Write
Default value: NULL
“changed”
signalvoid user_function (FontManagerSelections *fontmanagerselections, gpointer user_data)
Flags: Run Last