diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-10-19 01:34:26 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-10-19 01:34:26 +0800 |
commit | 35c88458073d8b30d07281e2bca092e027fc58c8 (patch) | |
tree | 24af387c5e99dec3eef3603416df7322c9e6948a /widgets/text | |
parent | 1ff8c9a9228ae4ca9d88b0a8f5e7b464b9119bf5 (diff) | |
download | gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.tar gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.tar.gz gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.tar.bz2 gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.tar.lz gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.tar.xz gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.tar.zst gsoc2013-evolution-35c88458073d8b30d07281e2bca092e027fc58c8.zip |
Connect keys before we show the widget.
2001-10-18 Jon Trowbridge <trow@ximian.com>
* gal/e-text/e-entry.c (e_entry_enable_completion_full): Connect
keys before we show the widget.
svn path=/trunk/; revision=13756
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/e-entry.c | 6 | ||||
-rw-r--r-- | widgets/text/e-text.c | 2 |
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 |