[gnome-builder/wip/chergert/layout] editor: keep callback near its usage
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] editor: keep callback near its usage
- Date: Sat, 1 Jul 2017 21:18:01 +0000 (UTC)
commit 29a0c536dbdda622767e3a621ac70d045290a0bd
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 1 14:17:42 2017 -0700
editor: keep callback near its usage
libide/editor/ide-editor-view.c | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/libide/editor/ide-editor-view.c b/libide/editor/ide-editor-view.c
index dfabc15..b7620c4 100644
--- a/libide/editor/ide-editor-view.c
+++ b/libide/editor/ide-editor-view.c
@@ -210,24 +210,6 @@ ide_editor_view_buffer_notify_language_cb (IdeExtensionSetAdapter *set,
ide_editor_view_addin_language_changed (IDE_EDITOR_VIEW_ADDIN (exten), language_id);
}
-static gboolean
-ide_editor_view_source_view_event (IdeEditorView *self,
- GdkEvent *event,
- IdeSourceView *source_view)
-{
- g_assert (IDE_IS_EDITOR_VIEW (self));
- g_assert (event != NULL);
- g_assert (IDE_IS_SOURCE_VIEW (source_view) || GTK_SOURCE_IS_MAP (source_view));
-
- if (self->auto_hide_map)
- {
- ide_editor_view_update_reveal_timer (self);
- gtk_revealer_set_reveal_child (self->map_revealer, TRUE);
- }
-
- return GDK_EVENT_PROPAGATE;
-}
-
static void
ide_editor_view_buffer_notify_language (IdeEditorView *self,
GParamSpec *pspec,
@@ -252,6 +234,24 @@ ide_editor_view_buffer_notify_language (IdeEditorView *self,
(gpointer)language_id);
}
+static gboolean
+ide_editor_view_source_view_event (IdeEditorView *self,
+ GdkEvent *event,
+ IdeSourceView *source_view)
+{
+ g_assert (IDE_IS_EDITOR_VIEW (self));
+ g_assert (event != NULL);
+ g_assert (IDE_IS_SOURCE_VIEW (source_view) || GTK_SOURCE_IS_MAP (source_view));
+
+ if (self->auto_hide_map)
+ {
+ ide_editor_view_update_reveal_timer (self);
+ gtk_revealer_set_reveal_child (self->map_revealer, TRUE);
+ }
+
+ return GDK_EVENT_PROPAGATE;
+}
+
static void
ide_editor_view_bind_signals (IdeEditorView *self,
IdeBuffer *buffer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]