[epiphany] ephy-initial-state: document 'ephy_initial_state_add_window'



commit ebd44a6544f3d6aafb1477c63b3107c36fbf2e7c
Author: Xan Lopez <xan igalia com>
Date:   Sun Dec 16 10:45:21 2012 +0100

    ephy-initial-state: document 'ephy_initial_state_add_window'

 lib/ephy-initial-state.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/lib/ephy-initial-state.c b/lib/ephy-initial-state.c
index fb625ac..2bc5f7b 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]