summaryrefslogtreecommitdiff
path: root/src/manage_window.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /src/manage_window.h
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'src/manage_window.h')
-rw-r--r--src/manage_window.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/manage_window.h b/src/manage_window.h
new file mode 100644
index 0000000..61369d1
--- /dev/null
+++ b/src/manage_window.h
@@ -0,0 +1,59 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 Hiroyuki Yamamoto
4 *
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.
9 *
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.
14 *
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.
18 */
19
20#ifndef __MANAGE_WINDOW_H__
21#define __MANAGE_WINDOW_H__
22
23#include <glib.h>
24#include <gtk/gtkwidget.h>
25#include <gtk/gtkwindow.h>
26
27#define MANAGE_WINDOW_SIGNALS_CONNECT(window) \
28{ \
29 g_signal_connect(G_OBJECT(window), "focus_in_event", \
30 G_CALLBACK(manage_window_focus_in), NULL); \
31 g_signal_connect(G_OBJECT(window), "focus_out_event", \
32 G_CALLBACK(manage_window_focus_out), NULL); \
33 g_signal_connect(G_OBJECT(window), "unmap_event", \
34 G_CALLBACK(manage_window_unmap), NULL); \
35 g_signal_connect(G_OBJECT(window), "destroy", \
36 G_CALLBACK(manage_window_destroy), NULL); \
37}
38
39gint manage_window_focus_in (GtkWidget *widget,
40 GdkEventFocus *event,
41 gpointer data);
42gint manage_window_focus_out (GtkWidget *widget,
43 GdkEventFocus *event,
44 gpointer data);
45gint manage_window_unmap (GtkWidget *widget,
46 GdkEventAny *event,
47 gpointer data);
48gint manage_window_delete (GtkWidget *widget,
49 GdkEventAny *event,
50 gpointer data);
51void manage_window_destroy (GtkWidget *widget,
52 gpointer data);
53
54void manage_window_set_transient (GtkWindow *window);
55void manage_window_signals_connect (GtkWindow *window);
56
57GtkWidget *manage_window_get_focus_window (void);
58
59#endif /* __MANAGE_WINDOW_H__ */