iceWing
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
Gsession.h File Reference
#include <gtk/gtk.h>
#include "Gpreview.h"

Go to the source code of this file.

Functions

char * iw_session_get_name (void)
void iw_session_set_name (const char *name)
void iw_session_clear (void)
void iw_session_save (void)
gboolean iw_session_load (void)
gboolean iw_session_set_prev (GtkWidget *window, prevBuffer *buf, const char *title, gboolean set_pos, gboolean set_size)
gboolean iw_session_set (GtkWidget *window, const char *title, gboolean set_pos, gboolean set_size)
gboolean iw_session_find (const char *title)
void iw_session_remove (const char *title)

Function Documentation

char* iw_session_get_name ( void  )

  Return name of the default session file. Returned value is a pointer
  to a static variable.

void iw_session_set_name ( const char *  name)

  Set name of the session file.

void iw_session_clear ( void  )

  Delete the session file and thus clear the session.

void iw_session_save ( void  )

  Save session information for all open windows to file
  iw_session_get_name().

gboolean iw_session_load ( void  )

  Load new (not already loaded) session information from file
  iw_session_get_name().

gboolean iw_session_set_prev ( GtkWidget *  window,
prevBuffer buf,
const char *  title,
gboolean  set_pos,
gboolean  set_size 
)

  PRIVATE: Apply the session entry for 'title', free the entry
  afterwards, and add window to the list of session managed windows.
  set_pos: Set position of window ?
  set_size: Set size of window ?
  Return: Session entry for 'title' found and applied?

gboolean iw_session_set ( GtkWidget *  window,
const char *  title,
gboolean  set_pos,
gboolean  set_size 
)

  Apply the session entry for 'title', free the entry afterwards, and
  add window to the list of session managed windows.
  set_pos: Set position of window ?
  set_size: Set size of window ?
  Return: Session entry for 'title' found and applied?

gboolean iw_session_find ( const char *  title)

  Return if a session entry with 'title' was loaded.

void iw_session_remove ( const char *  title)

  Remove window with 'title' from the list of session managed windows,
  e.g. if window was closed.