aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-completion-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text/e-completion-test.c')
-rw-r--r--widgets/text/e-completion-test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/text/e-completion-test.c b/widgets/text/e-completion-test.c
index 3172cecb13..f01389363a 100644
--- a/widgets/text/e-completion-test.c
+++ b/widgets/text/e-completion-test.c
@@ -142,6 +142,12 @@ end_dict_search (ECompletion *complete, gpointer user_data)
}
}
+static void
+popup_cb (EEntry *popup, GdkEventButton *ev, gint pos, gpointer user_data)
+{
+ g_print ("popup at pos %d\n", pos);
+}
+
int
main (int argc, gchar **argv)
{
@@ -172,6 +178,11 @@ main (int argc, gchar **argv)
e_entry_enable_completion_full (E_ENTRY (entry), complete, -1, NULL);
e_entry_set_editable (E_ENTRY (entry), TRUE);
+ gtk_signal_connect (GTK_OBJECT (entry),
+ "popup",
+ GTK_SIGNAL_FUNC (popup_cb),
+ NULL);
+
gtk_container_add (GTK_CONTAINER (win), entry);
gtk_widget_show_all (win);