2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 Hiroyuki Yamamoto
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __MANAGE_WINDOW_H__
21 #define __MANAGE_WINDOW_H__
24 #include <gtk/gtkwidget.h>
25 #include <gtk/gtkwindow.h>
27 #define MANAGE_WINDOW_SIGNALS_CONNECT(window) \
29 gtk_signal_connect(GTK_OBJECT(window), "focus_in_event", \
30 GTK_SIGNAL_FUNC(manage_window_focus_in), NULL); \
31 gtk_signal_connect(GTK_OBJECT(window), "focus_out_event", \
32 GTK_SIGNAL_FUNC(manage_window_focus_out), NULL); \
33 gtk_signal_connect(GTK_OBJECT(window), "unmap_event", \
34 GTK_SIGNAL_FUNC(manage_window_unmap), NULL); \
35 gtk_signal_connect(GTK_OBJECT(window), "destroy", \
36 GTK_SIGNAL_FUNC(manage_window_destroy), NULL); \
39 gint
manage_window_focus_in (GtkWidget
*widget
,
42 gint
manage_window_focus_out (GtkWidget
*widget
,
45 gint
manage_window_unmap (GtkWidget
*widget
,
48 gint
manage_window_delete (GtkWidget
*widget
,
51 void manage_window_destroy (GtkWidget
*widget
,
54 void manage_window_set_transient (GtkWindow
*window
);
56 extern GtkWidget
*focus_window
;
58 GtkWidget
*manage_window_get_focus_window (void);
60 #endif /* __MANAGE_WINDOW_H__ */