[gnome-builder] sourceview: clear cursors on focus-out-event
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sourceview: clear cursors on focus-out-event
- Date: Sun, 4 Aug 2019 22:24:10 +0000 (UTC)
commit d3ac96d5038e1c0b7b7f034d431059c41c930e84
Author: Christian Hergert <chergert redhat com>
Date: Sun Aug 4 15:04:04 2019 -0700
sourceview: clear cursors on focus-out-event
Related #999
src/libide/sourceview/ide-source-view.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index 4c4e8c22e..3bf591c4c 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -4095,6 +4095,7 @@ ide_source_view_focus_out_event (GtkWidget *widget,
GdkEventFocus *event)
{
IdeSourceView *self = (IdeSourceView *)widget;
+ IdeSourceViewPrivate *priv = ide_source_view_get_instance_private (self);
gboolean ret;
g_assert (IDE_IS_SOURCE_VIEW (self));
@@ -4117,6 +4118,9 @@ ide_source_view_focus_out_event (GtkWidget *widget,
*/
gtk_source_view_set_highlight_current_line (GTK_SOURCE_VIEW (self), FALSE);
+ if (priv->cursor != NULL)
+ ide_cursor_remove_cursors (priv->cursor);
+
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]