3c5655ed2b35e8ca971718f345374f48ccdbe026
[pspp-builds.git] / src / ui / gui / window-manager.h
1 #ifndef WINDOW_MANAGER_H
2 #define WINDOW_MANAGER_H
3
4 #include <gtk/gtk.h>
5
6 enum window_type
7   {
8     WINDOW_DATA,
9     WINDOW_SYNTAX
10   };
11
12
13 struct editor_window
14  {
15   GtkWindow *window;      /* The top level window of the editor */
16   gchar *name;            /* The name of this editor */
17   enum window_type type;
18  } ;
19
20 struct editor_window * window_create (enum window_type type,
21                                       const gchar *name);
22
23 const gchar * window_name (const struct editor_window *);
24
25 void window_set_name_from_filename (struct editor_window *e,
26                                     const gchar *filename);
27
28 void minimise_all_windows (void);
29
30
31 #endif