From 35c88458073d8b30d07281e2bca092e027fc58c8 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Thu, 18 Oct 2001 17:34:26 +0000 Subject: Connect keys before we show the widget. 2001-10-18 Jon Trowbridge * gal/e-text/e-entry.c (e_entry_enable_completion_full): Connect keys before we show the widget. svn path=/trunk/; revision=13756 --- widgets/text/e-entry.c | 6 +++--- widgets/text/e-text.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'widgets') 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 -- cgit