[gnome-builder] sourceview: cleanup key-release-event handling
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sourceview: cleanup key-release-event handling
- Date: Thu, 28 Mar 2019 20:36:24 +0000 (UTC)
commit cd8906b81c945f04a319321de5cb07ec242e2dd2
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 28 13:31:37 2019 -0700
sourceview: cleanup key-release-event handling
src/libide/sourceview/ide-source-view.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index a7444d711..6e74a9257 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -2172,13 +2172,14 @@ ide_source_view_key_release_event (GtkWidget *widget,
{
IdeSourceView *self = (IdeSourceView *) widget;
IdeSourceViewPrivate *priv = ide_source_view_get_instance_private (self);
- GtkWidgetClass *klass = GTK_WIDGET_CLASS (ide_source_view_parent_class);
- gboolean ret = klass->key_release_event (widget, event);
+ gboolean ret;
+
+ g_assert (IDE_IS_SOURCE_VIEW (self));
+
+ ret = GTK_WIDGET_CLASS (ide_source_view_parent_class)->key_release_event (widget, event);
if (priv->definition_src_location)
- {
- ide_source_view_reset_definition_highlight (self);
- }
+ ide_source_view_reset_definition_highlight (self);
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]