summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-22 14:12:45 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-22 14:43:36 -0400
commit67a7ad069fbee4f53c05ba5d91bc50044cb4b913 (patch)
treeebee804fb83360cb7f63c9b1e18a5d16266220ea /tests
parentfb148027d91da293953293a367f6a7279e047445 (diff)
downloadgtk+-67a7ad069fbee4f53c05ba5d91bc50044cb4b913.tar.gz
entrycompletion: Drop action support
This api has not really been kept up with current user experiences in popups, and we're better off just dropping it and letting people do their own popups if they need custom UI.
Diffstat (limited to 'tests')
-rw-r--r--tests/testentrycompletion.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c
index efdc9467d6..68985d7383 100644
--- a/tests/testentrycompletion.c
+++ b/tests/testentrycompletion.c
@@ -182,14 +182,6 @@ match_func (GtkEntryCompletion *completion,
return ret;
}
-static void
-activated_cb (GtkEntryCompletion *completion,
- gint index,
- gpointer user_data)
-{
- g_print ("action activated: %d\n", index);
-}
-
static gint timer_count = 0;
static const char *dynamic_completions[] = {
@@ -379,10 +371,6 @@ main (int argc, char *argv[])
g_signal_connect (completion, "match-selected",
G_CALLBACK (match_selected_cb), NULL);
- gtk_entry_completion_insert_action_text (completion, 100, "action!");
- gtk_entry_completion_insert_action_text (completion, 101, "'nother action!");
- g_signal_connect (completion, "action_activated", G_CALLBACK (activated_cb), NULL);
-
/* Create our third entry */
entry = gtk_entry_new ();