Reflect completion selection directly in the entry

This commit is contained in:
Christian Dywan 2009-02-24 23:56:28 +01:00
parent 1f00d2ed14
commit edce7d348b

View file

@ -762,6 +762,9 @@ midori_location_action_completion_init (MidoriLocationAction* location_action,
gtk_entry_completion_set_model (completion, location_action->sort_model); gtk_entry_completion_set_model (completion, location_action->sort_model);
gtk_entry_completion_set_text_column (completion, URI_COL); gtk_entry_completion_set_text_column (completion, URI_COL);
#if GTK_CHECK_VERSION (2, 12, 0)
gtk_entry_completion_set_inline_selection (completion, TRUE);
#endif
gtk_cell_layout_clear (GTK_CELL_LAYOUT (completion)); gtk_cell_layout_clear (GTK_CELL_LAYOUT (completion));
renderer = gtk_cell_renderer_pixbuf_new (); renderer = gtk_cell_renderer_pixbuf_new ();