Display IDN hostnames decoded in address completion
This commit is contained in:
parent
a51b8f18dc
commit
93e846bf47
1 changed files with 9 additions and 1 deletions
|
@ -619,6 +619,7 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
|
||||||
GtkTreeIter* iter,
|
GtkTreeIter* iter,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
|
gchar* uri_raw;
|
||||||
gchar* uri;
|
gchar* uri;
|
||||||
gchar* title;
|
gchar* title;
|
||||||
gchar* desc;
|
gchar* desc;
|
||||||
|
@ -632,7 +633,14 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
|
||||||
gchar** parts;
|
gchar** parts;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
gtk_tree_model_get (model, iter, URI_COL, &uri, TITLE_COL, &title, -1);
|
gtk_tree_model_get (model, iter, URI_COL, &uri_raw, TITLE_COL, &title, -1);
|
||||||
|
|
||||||
|
#if GLIB_CHECK_VERSION (2, 22, 0)
|
||||||
|
uri = g_hostname_to_unicode (uri_raw);
|
||||||
|
g_free (uri_raw);
|
||||||
|
#else
|
||||||
|
uri = uri_raw;
|
||||||
|
#endif
|
||||||
|
|
||||||
desc = desc_uri = desc_title = key = NULL;
|
desc = desc_uri = desc_title = key = NULL;
|
||||||
if (G_LIKELY (data))
|
if (G_LIKELY (data))
|
||||||
|
|
Loading…
Reference in a new issue