[gnome-builder] editor-tab: remove unused key_press_event callback



commit e531d9a510ae86dd2659ba93433d89a4e59af111
Author: Christian Hergert <christian hergert me>
Date:   Wed Sep 24 15:28:21 2014 -0700

    editor-tab: remove unused key_press_event callback

 src/editor/gb-editor-tab.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index 7219762..bd63ebd 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -770,32 +770,6 @@ on_search_entry_activate (GdTaggedEntry *search_entry,
 }
 
 static gboolean
-on_source_view_key_press_event (GbSourceView *view,
-                                GdkEventKey  *event,
-                                GbEditorTab  *tab)
-{
-#if 0
-  GbEditorTabPrivate *priv;
-
-  g_assert (GB_IS_SOURCE_VIEW (view));
-  g_assert (GB_IS_EDITOR_TAB (tab));
-
-  priv = tab->priv;
-
-  if ((event->keyval == GDK_KEY_Escape))
-    {
-      if (gtk_source_search_context_get_highlight (priv->search_context))
-        {
-          gtk_source_search_context_set_highlight (priv->search_context, FALSE);
-          return TRUE;
-        }
-    }
-#endif
-
-  return FALSE;
-}
-
-static gboolean
 on_source_view_focus_in_event (GbSourceView *view,
                                GdkEvent     *event,
                                GbEditorTab  *tab)
@@ -966,10 +940,6 @@ gb_editor_tab_constructed (GObject *object)
                             tab);
 
   g_signal_connect (priv->source_view,
-                    "key-press-event",
-                    G_CALLBACK (on_source_view_key_press_event),
-                    tab);
-  g_signal_connect (priv->source_view,
                     "focus-in-event",
                     G_CALLBACK (on_source_view_focus_in_event),
                     tab);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]