[epiphany] Remember zoom state for file:// URIs



commit 60b773e6e1a96a3ace1b1f584796dea9abcb0bd7
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Mar 24 21:28:16 2019 +0100

    Remember zoom state for file:// URIs
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/102

 lib/history/ephy-history-service-hosts-table.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/lib/history/ephy-history-service-hosts-table.c b/lib/history/ephy-history-service-hosts-table.c
index ab66c90b0..c48da775c 100644
--- a/lib/history/ephy-history-service-hosts-table.c
+++ b/lib/history/ephy-history-service-hosts-table.c
@@ -355,14 +355,14 @@ get_hostname_and_locations (const gchar *url, gchar **hostname)
     *hostname = ephy_string_get_host_name (url);
   }
   /* Build an host name */
-  if (scheme == NULL || *hostname == NULL) {
-    *hostname = g_strdup (_("Others"));
+  if (scheme != NULL && strcmp (scheme, "file") == 0) {
+    *hostname = g_strdup ("Local files");
     host_locations = g_list_append (host_locations,
-                                    g_strdup ("about:blank"));
-  }  else if (strcmp (scheme, "file") == 0) {
-    *hostname = g_strdup (_("Local files"));
+                                    g_strdup (url));
+  } else if (scheme == NULL || *hostname == NULL) {
+    *hostname = g_strdup ("Others");
     host_locations = g_list_append (host_locations,
-                                    g_strdup ("file:///"));
+                                    g_strdup ("about:blank"));
   } else {
     char *location;
     char *tmp;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]