[epiphany] Pantheon: Allow Go Home for Most Visited



commit 720610064946e9860cd66c4f75b84eb3bf400215
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Fri Jul 10 22:36:28 2020 +0200

    Pantheon: Allow Go Home for Most Visited
    
    Always show Go Home button in Pantheon unless it is about:blank.
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/3

 src/ephy-action-bar-start.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-action-bar-start.c b/src/ephy-action-bar-start.c
index c5fae51a9..969295b2d 100644
--- a/src/ephy-action-bar-start.c
+++ b/src/ephy-action-bar-start.c
@@ -470,7 +470,10 @@ homepage_url_changed (GSettings  *settings,
   gboolean show_button;
 
   setting = g_settings_get_string (settings, key);
-  show_button = setting && setting[0] && g_strcmp0 (setting, "about:blank") != 0;
+  if (setting && setting[0])
+    show_button = g_strcmp0 (setting, "about:blank") != 0;
+  else
+    show_button = is_desktop_pantheon ();
 
   gtk_widget_set_visible (button, show_button);
   g_free (setting);


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