core: Add MetaDisplay:show-pad-osd signal
This is intended to be caught in the gnome-shell code, in order to show the OSD with the pad action mapping.
This commit is contained in:
parent
e2ad8700a9
commit
35554555e0
@ -129,6 +129,7 @@ enum
|
||||
RESTART,
|
||||
SHOW_RESIZE_POPUP,
|
||||
GL_VIDEO_MEMORY_PURGED,
|
||||
SHOW_PAD_OSD,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
@ -354,6 +355,25 @@ meta_display_class_init (MetaDisplayClass *klass)
|
||||
NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
* MetaDisplay::show-pad-osd:
|
||||
* @display: the #MetaDisplay instance
|
||||
* @pad: the pad device
|
||||
* @settings: the pad device settings
|
||||
* @edition_mode: Whether the OSD should be shown in edition mode
|
||||
*
|
||||
* Requests the pad button mapping OSD to be shown.
|
||||
*
|
||||
* Returns: (transfer none) (nullable): The OSD actor
|
||||
*/
|
||||
display_signals[SHOW_PAD_OSD] =
|
||||
g_signal_new ("show-pad-osd",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0, NULL, NULL, NULL,
|
||||
CLUTTER_TYPE_ACTOR, 3, CLUTTER_TYPE_INPUT_DEVICE,
|
||||
G_TYPE_SETTINGS, G_TYPE_BOOLEAN);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_FOCUS_WINDOW,
|
||||
g_param_spec_object ("focus-window",
|
||||
|
Loading…
Reference in New Issue
Block a user