iceWing
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
gui
Ggui.h
Go to the documentation of this file.
1
/* -*- mode: C; tab-width: 4; c-basic-offset: 4; -*- */
2
3
/*
4
* Author: Frank Loemker
5
*
6
* Copyright (C) 1999-2009
7
* Frank Loemker, Applied Computer Science, Faculty of Technology,
8
* Bielefeld University, Germany
9
*
10
* This file is part of iceWing, a graphical plugin shell.
11
*
12
* iceWing is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2 of the License, or
15
* (at your option) any later version.
16
*
17
* iceWing is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
*/
26
27
#ifndef iw_Ggui_H
28
#define iw_Ggui_H
29
30
#include <gtk/gtk.h>
31
#include <pthread.h>
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
/*********************************************************************
38
Terminate the program and return 'status' to the system.
39
Must be called instead of exit() if the program should exit.
40
*********************************************************************/
41
void
gui_exit
(
int
status);
42
43
/*********************************************************************
44
If immediate_exit is TRUE exit immediately. Otherwise schedule an
45
exit and return. The exit will be performed when gui_check_exit()
46
is called.
47
*********************************************************************/
48
void
gui_schedule_exit
(
int
status);
49
50
/*********************************************************************
51
Check if an exit is pending (from a click on the Quit-Button or a
52
call to gui_schedule_exit()) and exit.
53
immediate_exit==TRUE (default): On click on the Quit-button the
54
program exits immediately, otherwise it exits only if gui_exit()
55
or gui_check_exit() is called.
56
*********************************************************************/
57
void
gui_check_exit
(gboolean immediate_exit);
58
59
/*********************************************************************
60
Install the default window icon for the window win.
61
*********************************************************************/
62
void
gui_apply_icon
(GtkWidget *win);
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
/* iw_Ggui_H */
Generated by
1.8.1