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



commit 783676b29783f35b766af3bd526f0d106efc5f90
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 c47086f..eef7a16 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -193,9 +193,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]