aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-12-16 17:45:21 +0800
committerXan Lopez <xan@igalia.com>2012-12-16 17:45:21 +0800
commitebd44a6544f3d6aafb1477c63b3107c36fbf2e7c (patch)
tree824723b2525d1d22b1900b07febb1d54e3dc9cbd /lib
parent3b0dc557ca0fe21d59fba8bf7cd653c63b32ea48 (diff)
downloadgsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.tar
gsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.tar.gz
gsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.tar.bz2
gsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.tar.lz
gsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.tar.xz
gsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.tar.zst
gsoc2013-epiphany-ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c.zip
ephy-initial-state: document 'ephy_initial_state_add_window'
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-initial-state.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/ephy-initial-state.c b/lib/ephy-initial-state.c
index fb625ac45..2bc5f7be2 100644
--- a/lib/ephy-initial-state.c
+++ b/lib/ephy-initial-state.c
@@ -309,6 +309,23 @@ create_window_node (const char *name,
return node;
}
+/**
+ * ephy_initial_state_add_window:
+ * @window: a #GtkWindow
+ * @name: the name we'll use to identify this window
+ * @default_width: the default width we want to give it
+ * @default_height: the default height we want to give it
+ * @maximize: whether it should be maximized by default
+ * @flags: #EphyInitialStateWindowFlags defining what state we want to saze
+ *
+ * This method will set the correct default size and position for
+ * @window given the previously stored state information for its type
+ * (defined by @name). If there's no data available, the default
+ * values passed as parameters will be used. The @flags parameter
+ * controls whether we want to track the window's size or position in
+ * order to update our default values for this type.
+ *
+ **/
void
ephy_initial_state_add_window (GtkWidget *window,
const char *name,