aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text-model.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-08-09 14:44:59 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-08-09 14:44:59 +0800
commit9ca73ebd87d811931bce784496b4141f722f7eb8 (patch)
treefc4faf09a547914a286f5d0bac0b767ddc225ade /widgets/text/e-text-model.c
parentee974e6d09d80808df9275e44295575815a230e4 (diff)
downloadgsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.tar
gsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.tar.gz
gsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.tar.bz2
gsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.tar.lz
gsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.tar.xz
gsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.tar.zst
gsoc2013-evolution-9ca73ebd87d811931bce784496b4141f722f7eb8.zip
Bumped version up to 0.10.99.2.
2001-08-09 Jon Trowbridge <trow@ximian.com> * configure.in: Bumped version up to 0.10.99.2. * gal/e-text/e-entry.c (e_entry_class_init): Added "completion_popup" signal. (e_entry_show_popup): Emit "completion_popup" signal if the popup has appeared or disappeared. (e_entry_enable_completion_full): Listen for "cancel_completion" signals from our model, and disable our completion if get one. (e_entry_completion_popup_is_visible): Added. Returns TRUE if the completion popup is on the screen. * gal/e-text/e-text-model.c (e_text_model_class_init): Added "cancel_completion" signal. (e_text_model_cancel_completion): Added. Emits "cancel_completion" signal. svn path=/trunk/; revision=11824
Diffstat (limited to 'widgets/text/e-text-model.c')
-rw-r--r--widgets/text/e-text-model.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c
index 4fec8724d8..6d96f0769c 100644
--- a/widgets/text/e-text-model.c
+++ b/widgets/text/e-text-model.c
@@ -31,6 +31,7 @@ enum {
E_TEXT_MODEL_CHANGED,
E_TEXT_MODEL_REPOSITION,
E_TEXT_MODEL_OBJECT_ACTIVATED,
+ E_TEXT_MODEL_CANCEL_COMPLETION,
E_TEXT_MODEL_LAST_SIGNAL
};
@@ -124,6 +125,14 @@ e_text_model_class_init (ETextModelClass *klass)
gtk_marshal_NONE__INT,
GTK_TYPE_NONE, 1,
GTK_TYPE_INT);
+
+ e_text_model_signals[E_TEXT_MODEL_CANCEL_COMPLETION] =
+ gtk_signal_new ("cancel_completion",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (ETextModelClass, cancel_completion),
+ gtk_marshal_NONE__NONE,
+ GTK_TYPE_NONE, 0);
gtk_object_class_add_signals (object_class, e_text_model_signals, E_TEXT_MODEL_LAST_SIGNAL);
@@ -327,6 +336,14 @@ e_text_model_changed (ETextModel *model)
}
void
+e_text_model_cancel_completion (ETextModel *model)
+{
+ g_return_if_fail (E_IS_TEXT_MODEL (model));
+
+ gtk_signal_emit (GTK_OBJECT (model), e_text_model_signals[E_TEXT_MODEL_CANCEL_COMPLETION]);
+}
+
+void
e_text_model_reposition (ETextModel *model, ETextModelReposFn fn, gpointer repos_data)
{
g_return_if_fail (model != NULL);