[mutter] core: Add MetaDisplay:show-pad-osd signal



commit 35554555e07c294be046d428f8e9ac56fe16c92e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 22 19:14:35 2016 +0200

    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.

 src/core/display.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 009944c..9b241e9 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -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",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]