Top | ![]() |
![]() |
![]() |
![]() |
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 () |
GtkShortcutLabel implements GtkAccessible, GtkBuildable and GtkConstraintTarget.
GtkShortcutLabel is a widget that represents a single keyboard shortcut or gesture in the user interface.
GtkWidget *
gtk_shortcut_label_new (const char *accelerator
);
Creates a new GtkShortcutLabel with accelerator
set.
const char *
gtk_shortcut_label_get_accelerator (GtkShortcutLabel *self
);
Retrieves the current accelerator of self
.
void gtk_shortcut_label_set_accelerator (GtkShortcutLabel *self
,const char *accelerator
);
Sets the accelerator to be displayed by self
.
const char *
gtk_shortcut_label_get_disabled_text (GtkShortcutLabel *self
);
Retrieves the text that is displayed when no accelerator is set.
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.
“accelerator”
property “accelerator” char *
The accelerator that self
displays. See “accelerator”
for the accepted syntax.
Owner: GtkShortcutLabel
Flags: Read / Write
Default value: NULL