Commit e0b395d2 authored by Mal's avatar Mal Committed by Michael Catanzaro

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

https://bugzilla.gnome.org/show_bug.cgi?id=783299
parent dd0fe381
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment