Top |
Functions
GtkWidget * | gtk_shortcut_label_new () |
const char * | gtk_shortcut_label_get_accelerator () |
void | gtk_shortcut_label_set_accelerator () |
const char * | gtk_shortcut_label_get_disabled_text () |
void | gtk_shortcut_label_set_disabled_text () |
Implemented Interfaces
GtkShortcutLabel implements GtkAccessible, GtkBuildable and GtkConstraintTarget.
Description
GtkShortcutLabel is a widget that represents a single keyboard shortcut or gesture in the user interface.
Functions
gtk_shortcut_label_new ()
GtkWidget *
gtk_shortcut_label_new (const char *accelerator
);
Creates a new GtkShortcutLabel with accelerator
set.
gtk_shortcut_label_get_accelerator ()
const char *
gtk_shortcut_label_get_accelerator (GtkShortcutLabel *self
);
Retrieves the current accelerator of self
.
gtk_shortcut_label_set_accelerator ()
void gtk_shortcut_label_set_accelerator (GtkShortcutLabel *self
,const char *accelerator
);
Sets the accelerator to be displayed by self
.
gtk_shortcut_label_get_disabled_text ()
const char *
gtk_shortcut_label_get_disabled_text (GtkShortcutLabel *self
);
Retrieves the text that is displayed when no accelerator is set.
gtk_shortcut_label_set_disabled_text ()
void gtk_shortcut_label_set_disabled_text (GtkShortcutLabel *self
,const char *disabled_text
);
Sets the text to be displayed by self
when no accelerator is set.
Property Details
The “accelerator”
property
“accelerator” char *
The accelerator that self
displays. See “accelerator”
for the accepted syntax.
Owner: GtkShortcutLabel
Flags: Read / Write
Default value: NULL