Commit 887eb67d authored by Lorenzo Tilve's avatar Lorenzo Tilve Committed by Carlos Garcia Campos

Avoid showing inaccurate message when lockdown.disable-fullscreen is set

On Web start, if fullscreen is locked down, the message "Press F11 to exit
fullscreen" is displayed while that action would not doable.

Don't show that wrong message when fullscren is locked.

https://bugzilla.gnome.org/show_bug.cgi?id=708862
parent 9ed33edd
......@@ -290,15 +290,17 @@ fullscreen_message_label_hide (EphyEmbed *embed)
void
ephy_embed_entering_fullscreen (EphyEmbed *embed)
{
gtk_widget_show (embed->priv->fullscreen_message_label);
if (!g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN, EPHY_PREFS_LOCKDOWN_FULLSCREEN)) {
gtk_widget_show (embed->priv->fullscreen_message_label);
if (embed->priv->fullscreen_message_id)
g_source_remove (embed->priv->fullscreen_message_id);
if (embed->priv->fullscreen_message_id)
g_source_remove (embed->priv->fullscreen_message_id);
embed->priv->fullscreen_message_id = g_timeout_add_seconds (5,
(GSourceFunc)fullscreen_message_label_hide,
embed);
g_source_set_name_by_id (embed->priv->fullscreen_message_id, "[epiphany] fullscreen_message_label_hide");
embed->priv->fullscreen_message_id = g_timeout_add_seconds (5,
(GSourceFunc)fullscreen_message_label_hide,
embed);
g_source_set_name_by_id (embed->priv->fullscreen_message_id, "[epiphany] fullscreen_message_label_hide");
}
}
void
......
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