]> spindle.queued.net Git - midori/commitdiff
Remove unused sokoke completion helpers
authorChristian Dywan <christian@twotoasts.de>
Fri, 21 Nov 2008 01:46:47 +0000 (02:46 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 21 Nov 2008 01:46:47 +0000 (02:46 +0100)
midori/sokoke.c
midori/sokoke.h

index 7ea9b830c3546a9f2ed8584940142160d7b29985..2822f5a29cf0d15a32a625251dacc3f589768181 100644 (file)
@@ -152,31 +152,6 @@ sokoke_magic_uri (const gchar* uri,
     return g_strdup (uri);
 }
 
-void
-sokoke_entry_setup_completion (GtkEntry* entry)
-{
-    /* TODO: The current behavior works only with the beginning of strings
-             But we want to match "localhost" with "loc" and "hos" */
-    GtkEntryCompletion* completion = gtk_entry_completion_new ();
-    gtk_entry_completion_set_model (completion,
-        GTK_TREE_MODEL (gtk_list_store_new (1, G_TYPE_STRING)));
-    gtk_entry_completion_set_text_column (completion, 0);
-    gtk_entry_completion_set_minimum_key_length (completion, 3);
-    gtk_entry_set_completion (entry, completion);
-    /* FIXME: Completion doesn't work well, so it's disabled */
-    gtk_entry_completion_set_popup_completion (completion, FALSE);
-}
-
-void
-sokoke_entry_append_completion (GtkEntry* entry, const gchar* text)
-{
-    GtkEntryCompletion* completion = gtk_entry_get_completion (entry);
-    GtkTreeModel* completion_store = gtk_entry_completion_get_model (completion);
-    GtkTreeIter iter;
-    gtk_list_store_insert (GTK_LIST_STORE (completion_store), &iter, 0);
-    gtk_list_store_set (GTK_LIST_STORE (completion_store), &iter, 0, text, -1);
-}
-
 void
 sokoke_combo_box_add_strings (GtkComboBox* combobox,
                               const gchar* label_first, ...)
index 3f7d5a7194f5ef4ded3ea7be8613a9a5347b62ad..6e769ed98746b73c73ce45239c92738ca18ae6ef 100644 (file)
@@ -27,13 +27,6 @@ gchar*
 sokoke_magic_uri                    (const gchar*    uri,
                                      KatzeArray*     search_engines);
 
-void
-sokoke_entry_setup_completion       (GtkEntry*       entry);
-
-void
-sokoke_entry_append_completion      (GtkEntry*       entry,
-                                     const gchar*    text);
-
 typedef enum {
     SOKOKE_MENU_POSITION_CURSOR = 0,
     SOKOKE_MENU_POSITION_LEFT,