aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-entry.c6
-rw-r--r--widgets/text/e-text.c2
2 files changed, 3 insertions, 5 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 54a9e6e8af..b46ed1e6c5 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -805,14 +805,14 @@ e_entry_enable_completion_full (EEntry *entry, ECompletion *completion, gint del
GTK_SIGNAL_FUNC (key_release_cb),
entry->canvas);
+ e_completion_view_connect_keys (E_COMPLETION_VIEW (entry->priv->completion_view),
+ GTK_WIDGET (entry->canvas));
+
gtk_object_ref (GTK_OBJECT (entry->priv->completion_view_popup));
gtk_object_sink (GTK_OBJECT (entry->priv->completion_view_popup));
gtk_window_set_policy (GTK_WINDOW (entry->priv->completion_view_popup), TRUE, TRUE, TRUE);
gtk_container_add (GTK_CONTAINER (entry->priv->completion_view_popup), entry->priv->completion_view);
gtk_widget_show (entry->priv->completion_view);
-
- e_completion_view_connect_keys (E_COMPLETION_VIEW (entry->priv->completion_view),
- GTK_WIDGET (entry->canvas));
}
gboolean
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 95f35a75a8..7f7894c9fd 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -3010,8 +3010,6 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
e_tep_event.key.time = key.time;
e_tep_event.key.state = key.state;
e_tep_event.key.keyval = key.keyval;
-
- /* g_print ("etext got keyval \"%s\"\n", gdk_keyval_name (key.keyval)); */
/* This is probably ugly hack, but we have to handle UTF-8 input somehow */
#if 0