<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-03-22 15:48 GMT+01:00 Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
<br>
Copied from desktop-shell/input-panel.c, add a label function for the<br>
input panel.<br>
<br>
This patch strictly reduces the difference between input-panel.c and<br>
input-panel-ivi.c.<br>
<br>
Signed-off-by: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
---<br>
ivi-shell/input-panel-ivi.c | 8 ++++++++<br>
1 file changed, 8 insertions(+)<br>
<br>
diff --git a/ivi-shell/input-panel-ivi.c b/ivi-shell/input-panel-ivi.c<br>
index 721d31c..581b56b 100644<br>
--- a/ivi-shell/input-panel-ivi.c<br>
+++ b/ivi-shell/input-panel-ivi.c<br>
@@ -157,6 +157,12 @@ update_input_panels(struct wl_listener *listener, void *data)<br>
memcpy(&shell->text_input.cursor_rectangle, data, sizeof(pixman_box32_t));<br>
}<br>
<br>
+static int<br>
+input_panel_get_label(struct weston_surface *surface, char *buf, size_t len)<br>
+{<br>
+ return snprintf(buf, len, "input panel");<br>
+}<br>
+<br>
static void<br>
input_panel_configure(struct weston_surface *surface, int32_t sx, int32_t sy)<br>
{<br>
@@ -194,6 +200,7 @@ destroy_input_panel_surface(struct input_panel_surface *input_panel_surface)<br>
wl_list_remove(&input_panel_surface->link);<br>
<br>
input_panel_surface->surface->configure = NULL;<br>
+ weston_surface_set_label_func(input_panel_surface->surface, NULL);<br>
weston_view_destroy(input_panel_surface->view);<br>
<br>
free(input_panel_surface);<br>
@@ -235,6 +242,7 @@ create_input_panel_surface(struct ivi_shell *shell,<br>
<br>
surface->configure = input_panel_configure;<br>
surface->configure_private = input_panel_surface;<br>
+ weston_surface_set_label_func(surface, input_panel_get_label);<br>
<br>
input_panel_surface->shell = shell;<br>
<span class=""><font color="#888888"><br>
--<br>
2.7.3<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div>Looks good<br>
<span>Reviewed</span>-<span>by</span>: Eugen Friedrich <<a href="mailto:friedrix@gmail.com" target="_blank">friedrix@gmail.com</a>></div></div>