[gnome-builder] 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] runner: Make sure to return gboolean from query-tooltip callback
- Date: Tue, 17 Jul 2018 17:21:39 +0000 (UTC)
commit 9efb6bde516f196003b242c5a959c5d01186c7f5
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 f00536d72..d659b0f4e 100644
--- a/src/libide/runner/ide-run-button.c
+++ b/src/libide/runner/ide-run-button.c
@@ -111,7 +111,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,
@@ -146,9 +146,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]