[gnome-builder/gnome-builder-3-28] runner: Make sure to return gboolean from query-tooltip callback
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] runner: Make sure to return gboolean from query-tooltip callback
- Date: Thu, 19 Jul 2018 16:47:40 +0000 (UTC)
commit 66af79f0281e853ba61a753032dfe8efd5e91c63
Author: Sam Spilsbury <sam endlessm com>
Date: Tue Jul 17 21:23:39 2018 +0800
runner: Make sure to return gboolean from query-tooltip callback
The return value is checked to determine whether to show
the tooltip.
src/libide/runner/ide-run-button.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/runner/ide-run-button.c b/src/libide/runner/ide-run-button.c
index 43a387c5c..cba5c9f6c 100644
--- a/src/libide/runner/ide-run-button.c
+++ b/src/libide/runner/ide-run-button.c
@@ -109,7 +109,7 @@ ide_run_button_context_set (GtkWidget *widget,
ide_run_button_load (self, context);
}
-static void
+static gboolean
ide_run_button_query_tooltip (IdeRunButton *self,
gint x,
gint y,
@@ -144,9 +144,12 @@ ide_run_button_query_tooltip (IdeRunButton *self,
"visible", TRUE,
NULL);
gtk_tooltip_set_custom (tooltip, GTK_WIDGET (self->run_shortcut));
- break;
+
+ return TRUE;
}
}
+
+ return FALSE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]