Top | ![]() |
![]() |
![]() |
![]() |
char * | name | Read / Write / Construct Only |
char * | parent-name | Read / Write |
char * | subtitle | Read / Write |
char * | title | Read / Write |
const gchar *
dzl_shortcut_theme_get_title (DzlShortcutTheme *self
);
const gchar *
dzl_shortcut_theme_get_subtitle (DzlShortcutTheme *self
);
DzlShortcutTheme *
dzl_shortcut_theme_get_parent (DzlShortcutTheme *self
);
If the “parent-name” property has been set, this will fetch the parent DzlShortcutTheme.
const gchar *
dzl_shortcut_theme_get_parent_name (DzlShortcutTheme *self
);
Gets the name of the parent shortcut theme.
This is used to resolve shortcuts from the parent theme without having to copy them directly into this shortcut theme. It allows for some level of copy-on-write (CoW).
void dzl_shortcut_theme_set_parent_name (DzlShortcutTheme *self
,const gchar *parent_name
);
DzlShortcutContext * dzl_shortcut_theme_find_default_context (DzlShortcutTheme *self
,GtkWidget *widget
);
Finds the default context in the theme for widget
.
DzlShortcutContext * dzl_shortcut_theme_find_context_by_name (DzlShortcutTheme *self
,const gchar *name
);
Gets the context named name
. If the context does not exist, it will
be created.
void dzl_shortcut_theme_add_command (DzlShortcutTheme *self
,const gchar *accelerator
,const gchar *command
);
void dzl_shortcut_theme_add_context (DzlShortcutTheme *self
,DzlShortcutContext *context
);
void dzl_shortcut_theme_set_chord_for_action (DzlShortcutTheme *self
,const gchar *detailed_action_name
,const DzlShortcutChord *chord
,DzlShortcutPhase phase
);
const DzlShortcutChord * dzl_shortcut_theme_get_chord_for_action (DzlShortcutTheme *self
,const gchar *detailed_action_name
);
void dzl_shortcut_theme_set_accel_for_action (DzlShortcutTheme *self
,const gchar *detailed_action_name
,const gchar *accel
,DzlShortcutPhase phase
);
void dzl_shortcut_theme_set_chord_for_command (DzlShortcutTheme *self
,const gchar *command
,const DzlShortcutChord *chord
,DzlShortcutPhase phase
);
This will set the command to execute when chord
is pressed. If command is
NULL
, the accelerator will be cleared. If chord
is NULL
, all
accelerators for command
will be cleared.
const DzlShortcutChord * dzl_shortcut_theme_get_chord_for_command (DzlShortcutTheme *self
,const gchar *command
);
void dzl_shortcut_theme_set_accel_for_command (DzlShortcutTheme *self
,const gchar *command
,const gchar *accel
,DzlShortcutPhase phase
);
This will set the command to execute when accel
is pressed. If command is
NULL
, the accelerator will be cleared. If accelerator is NULL
, all
accelerators for command
will be cleared.
gboolean dzl_shortcut_theme_load_from_data (DzlShortcutTheme *self
,const gchar *data
,gssize len
,GError **error
);
gboolean dzl_shortcut_theme_load_from_file (DzlShortcutTheme *self
,GFile *file
,GCancellable *cancellable
,GError **error
);
gboolean dzl_shortcut_theme_load_from_path (DzlShortcutTheme *self
,const gchar *path
,GCancellable *cancellable
,GError **error
);
gboolean dzl_shortcut_theme_save_to_file (DzlShortcutTheme *self
,GFile *file
,GCancellable *cancellable
,GError **error
);
gboolean dzl_shortcut_theme_save_to_stream (DzlShortcutTheme *self
,GOutputStream *stream
,GCancellable *cancellable
,GError **error
);
gboolean dzl_shortcut_theme_save_to_path (DzlShortcutTheme *self
,const gchar *path
,GCancellable *cancellable
,GError **error
);
void dzl_shortcut_theme_add_css_resource (DzlShortcutTheme *self
,const gchar *path
);
void dzl_shortcut_theme_remove_css_resource (DzlShortcutTheme *self
,const gchar *path
);
struct DzlShortcutThemeClass { GObjectClass parent_class; gpointer _reserved1; gpointer _reserved2; gpointer _reserved3; gpointer _reserved4; gpointer _reserved5; gpointer _reserved6; gpointer _reserved7; gpointer _reserved8; };
“name”
property “name” char *
The name of the theme.
Owner: DzlShortcutTheme
Flags: Read / Write / Construct Only
Default value: NULL
“parent-name”
property “parent-name” char *
The name of the parent shortcut theme.
Owner: DzlShortcutTheme
Flags: Read / Write
Default value: NULL
“subtitle”
property “subtitle” char *
The subtitle of the theme as used for UI elements.
Owner: DzlShortcutTheme
Flags: Read / Write
Default value: NULL