| Top |
| DzlShortcutTheme * | theme | Read / Write |
| char * | theme-name | Read / Write |
| char * | user-dir | Read / Write |
| #define | DZL_TYPE_SHORTCUT_MANAGER |
| struct | DzlShortcutManagerClass |
| DzlShortcutManager |
DzlShortcutManager *
dzl_shortcut_manager_get_default (void);
Gets the singleton DzlShortcutManager for the process.
void
dzl_shortcut_manager_queue_reload (DzlShortcutManager *self);
void dzl_shortcut_manager_reload (DzlShortcutManager *self,GCancellable *cancellable);
void dzl_shortcut_manager_append_search_path (DzlShortcutManager *self,const gchar *directory);
void dzl_shortcut_manager_prepend_search_path (DzlShortcutManager *self,const gchar *directory);
void dzl_shortcut_manager_remove_search_path (DzlShortcutManager *self,const gchar *directory);
DzlShortcutTheme *
dzl_shortcut_manager_get_theme (DzlShortcutManager *self);
Gets the "theme" property.
void dzl_shortcut_manager_set_theme (DzlShortcutManager *self,DzlShortcutTheme *theme);
Sets the theme for the shortcut manager.
const gchar *
dzl_shortcut_manager_get_theme_name (DzlShortcutManager *self);
void dzl_shortcut_manager_set_theme_name (DzlShortcutManager *self,const gchar *theme_name);
DzlShortcutTheme * dzl_shortcut_manager_get_theme_by_name (DzlShortcutManager *self,const gchar *theme_name);
Locates a theme by the name of the theme.
If theme_name
is NULL, then the internal theme is used. You probably dont
need to use that as it is used by various controllers to hook up their
default actions.
gboolean dzl_shortcut_manager_handle_event (DzlShortcutManager *self,const GdkEventKey *event,GtkWidget *toplevel);
This function will try to dispatch event
to the proper widget and
DzlShortcutContext. If the event is handled, then TRUE is returned.
You should call this from “key-press-event” handler in your GtkWindow toplevel.
const gchar *
dzl_shortcut_manager_get_user_dir (DzlShortcutManager *self);
void dzl_shortcut_manager_set_user_dir (DzlShortcutManager *self,const gchar *user_dir);
void dzl_shortcut_manager_add_action (DzlShortcutManager *self,const gchar *detailed_action_name,const gchar *section,const gchar *group,const gchar *title,const gchar *subtitle);
void dzl_shortcut_manager_add_command (DzlShortcutManager *self,const gchar *command,const gchar *section,const gchar *group,const gchar *title,const gchar *subtitle);
void dzl_shortcut_manager_add_shortcut_entries (DzlShortcutManager *self,const DzlShortcutEntry *shortcuts,guint n_shortcuts,const gchar *translation_domain);
This method will add shortcuts
to the DzlShortcutManager.
This provides a simple way for widgets to add their shortcuts to the manager so that they may be overriden by themes or the end user.
self |
a DzlShortcutManager or |
[nullable] |
shortcuts |
shortcuts to add. |
[array length=n_shortcuts] |
n_shortcuts |
the number of entries in |
|
translation_domain |
the gettext domain to use for translations. |
[nullable] |
void dzl_shortcut_manager_add_shortcuts_to_window (DzlShortcutManager *self,DzlShortcutsWindow *window);
Adds shortcuts registered with the DzlShortcutManager to the DzlShortcutsWindow.
struct DzlShortcutManagerClass {
GObjectClass parent_instance;
gpointer _reserved1;
gpointer _reserved2;
gpointer _reserved3;
gpointer _reserved4;
gpointer _reserved5;
gpointer _reserved6;
gpointer _reserved7;
gpointer _reserved8;
};
“theme” property“theme” DzlShortcutTheme *
The current key theme.
Owner: DzlShortcutManager
Flags: Read / Write
“theme-name” property “theme-name” char *
The name of the current theme.
Owner: DzlShortcutManager
Flags: Read / Write
Default value: NULL
“changed” signalvoid user_function (DzlShortcutManager *dzlshortcutmanager, gpointer user_data)
Flags: Run Last