[iagno] Remove unused window-is-fullscreen gsetting
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Remove unused window-is-fullscreen gsetting
- Date: Thu, 27 Mar 2014 14:01:47 +0000 (UTC)
commit 6db8dbdf4934a976ef332e801a49ea2caf4fc450
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Mar 27 08:58:35 2014 -0500
Remove unused window-is-fullscreen gsetting
data/org.gnome.iagno.gschema.xml | 4 ----
src/iagno.vala | 5 +----
2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/data/org.gnome.iagno.gschema.xml b/data/org.gnome.iagno.gschema.xml
index 9227d0d..ced38b3 100644
--- a/data/org.gnome.iagno.gschema.xml
+++ b/data/org.gnome.iagno.gschema.xml
@@ -28,9 +28,5 @@
<default>false</default>
<summary>true if the window is maximized</summary>
</key>
- <key name="window-is-fullscreen" type="b">
- <default>false</default>
- <summary>true if the window is fullscren</summary>
- </key>
</schema>
</schemalist>
diff --git a/src/iagno.vala b/src/iagno.vala
index e7299f9..7043054 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -91,9 +91,7 @@ public class Iagno : Gtk.Application
window.configure_event.connect (window_configure_event_cb);
window.window_state_event.connect (window_state_event_cb);
window.set_default_size (settings.get_int ("window-width"), settings.get_int ("window-height"));
- if (settings.get_boolean ("window-is-fullscreen"))
- window.fullscreen ();
- else if (settings.get_boolean ("window-is-maximized"))
+ if (settings.get_boolean ("window-is-maximized"))
window.maximize ();
var image = new Gtk.Image ();
@@ -177,7 +175,6 @@ public class Iagno : Gtk.Application
settings.set_int ("window-width", window_width);
settings.set_int ("window-height", window_height);
settings.set_boolean ("window-is-maximized", is_maximized);
- settings.set_boolean ("window-is-fullscreen", is_fullscreen);
}
private bool window_configure_event_cb (Gdk.EventConfigure event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]