[epiphany/gnome-3-26] header-bar: do not show home button if home page is set to blank page



commit e0b395d21c13bb7fd3287eb40f88294e635892af
Author: Mal <malbx 00 gmail com>
Date:   Wed Oct 25 23:42:10 2017 -0400

    header-bar: do not show home button if home page is set to blank page
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783299

 src/ephy-header-bar.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index a2ac439..ef4e916 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -191,9 +191,12 @@ homepage_url_changed (GSettings  *settings,
                       GtkWidget  *button)
 {
   char *setting;
+  gboolean show_button;
 
   setting = g_settings_get_string (settings, key);
-  gtk_widget_set_visible (button, setting && setting[0]);
+  show_button = setting && setting[0] && g_strcmp0 (setting, "about:blank") != 0;
+
+  gtk_widget_set_visible (button, show_button);
   g_free (setting);
 }
 


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