[mutter/wip/tablet-protocol-v2: 68/70] core: Add MetaDisplay:show-pad-osd signal



commit 4a3347854c6dd853cdbaf87b6d076496a0981dd9
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 a9ddfef..114ea91 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -128,6 +128,7 @@ enum
   SHOW_RESTART_MESSAGE,
   RESTART,
   SHOW_RESIZE_POPUP,
+  SHOW_PAD_OSD,
   LAST_SIGNAL
 };
 
@@ -345,6 +346,25 @@ meta_display_class_init (MetaDisplayClass *klass)
                   G_TYPE_BOOLEAN, 4,
                   G_TYPE_BOOLEAN, META_TYPE_RECTANGLE, G_TYPE_INT, G_TYPE_INT);
 
+  /**
+   * 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]