[epiphany/wip/gtkaction-to-gaction] lockdown: Fix bug with 'disable-fullscreen'
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/gtkaction-to-gaction] lockdown: Fix bug with 'disable-fullscreen'
- Date: Fri, 22 Jul 2016 12:29:54 +0000 (UTC)
commit 3332238c5d989eacc6172bf7e1c862ab5bc7a6f4
Author: Iulian Radu <iulian radu67 gmail com>
Date: Mon Jul 18 14:38:32 2016 +0300
lockdown: Fix bug with 'disable-fullscreen'
src/ephy-lockdown.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c
index eac42c6..cc2595c 100644
--- a/src/ephy-lockdown.c
+++ b/src/ephy-lockdown.c
@@ -66,10 +66,13 @@ fullscreen_cb (GSettings *settings,
const char *key,
EphyWindow *window)
{
+ /* The setting is named "disable-fullscreen". If the setting is "true",
+ * unfullscreen the window
+ */
if (g_settings_get_boolean (settings, key))
- gtk_window_fullscreen (GTK_WINDOW (window));
- else
gtk_window_unfullscreen (GTK_WINDOW (window));
+ else
+ gtk_window_fullscreen (GTK_WINDOW (window));
}
typedef struct {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]