1
/* The GIMP -- an image manipulation program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
5
* Copyright (C) 2001-2003 Michael Natterer <mitch@gimp.org>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
#ifndef __GIMP_SESSION_INFO_H__
23
#define __GIMP_SESSION_INFO_H__
26
struct _GimpSessionInfo
32
gboolean open; /* only valid while restoring and saving the session */
33
gint screen; /* only valid while restoring and saving the session */
35
/* dialog specific list of GimpSessionInfoAux */
40
/* only one of these is valid */
41
GimpDialogFactoryEntry *toplevel_entry;
42
GimpDialogFactoryEntry *dockable_entry;
44
/* list of GimpSessionInfoBook */
48
struct _GimpSessionInfoBook
55
/* list of GimpSessionInfoDockable */
59
struct _GimpSessionInfoDockable
62
GimpTabStyle tab_style;
65
/* dialog specific list of GimpSessionInfoAux */
69
struct _GimpSessionInfoAux
76
void gimp_session_info_free (GimpSessionInfo *info);
77
void gimp_session_info_book_free (GimpSessionInfoBook *book);
78
void gimp_session_info_dockable_free (GimpSessionInfoDockable *dockable);
81
gimp_session_info_aux_new (const gchar *name,
83
void gimp_session_info_aux_free (GimpSessionInfoAux *aux);
85
GList * gimp_session_info_aux_new_from_props (GObject *object,
87
void gimp_session_info_aux_set_props (GObject *object,
91
void gimp_session_info_save (GimpSessionInfo *info,
92
const gchar *factory_name,
93
GimpConfigWriter *writer);
94
GTokenType gimp_session_info_deserialize (GScanner *scanner,
96
void gimp_session_info_restore (GimpSessionInfo *info,
97
GimpDialogFactory *factory);
99
void gimp_session_info_set_geometry (GimpSessionInfo *info);
100
void gimp_session_info_get_geometry (GimpSessionInfo *info);
103
#endif /* __GIMP_SESSION_INFO_H__ */