home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / session.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  2.3 KB  |  66 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18.  
  19. #ifndef __SESSION_H__
  20. #define __SESSION_H__
  21.  
  22.  
  23. /* Structures */
  24. typedef struct _SessionInfo SessionInfo;
  25.  
  26. struct _SessionInfo
  27. {
  28.   gchar                  *name;
  29.   GtkItemFactoryCallback  open_callback;
  30.   gint                    x;
  31.   gint                    y;
  32.   gint                    width;
  33.   gint                    height;
  34.   gint                    count;
  35.   gboolean                open;
  36. };
  37.  
  38. /*  global session variables  */
  39. extern SessionInfo toolbox_session_info;
  40. extern SessionInfo lc_dialog_session_info;
  41. extern SessionInfo tool_options_session_info;
  42. extern SessionInfo device_status_session_info;
  43. extern SessionInfo brush_select_session_info;
  44. extern SessionInfo pattern_select_session_info;
  45. extern SessionInfo gradient_select_session_info;
  46. extern SessionInfo palette_session_info;
  47. extern SessionInfo info_dialog_session_info;
  48. extern SessionInfo error_console_session_info;
  49. extern SessionInfo document_index_session_info;
  50.  
  51. extern GList *session_info_updates;  /* This list holds all session_infos
  52.                     that should be written to the
  53.                     sessionrc on exit.             */  
  54.  
  55. /*  function prototypes  */
  56. void session_get_window_info     (GtkWidget   *window, 
  57.                   SessionInfo *info);
  58. void session_set_window_geometry (GtkWidget   *window,
  59.                   SessionInfo *info,
  60.                   gboolean     set_size);
  61. void session_init                (void);
  62. void session_restore             (void);
  63. void save_sessionrc              (void);
  64.  
  65. #endif  /*  __SESSION_H__  */
  66.