]> www.fi.muni.cz Git - evince.git/blob - cut-n-paste/smclient/eggsmclient-private.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / cut-n-paste / smclient / eggsmclient-private.h
1 /* eggsmclient-private.h
2  * Copyright (C) 2007 Novell, Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library 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 GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __EGG_SM_CLIENT_PRIVATE_H__
21 #define __EGG_SM_CLIENT_PRIVATE_H__
22
23 #include <gtk/gtk.h>
24
25 #if !GTK_CHECK_VERSION(2,91,7) && !GTK_CHECK_VERSION(3,0,0)
26 /* GTK+ 3 includes this automatically */
27 #include <gdkconfig.h>
28 #endif
29
30 #include "eggsmclient.h"
31
32 G_BEGIN_DECLS
33
34 GKeyFile *egg_sm_client_save_state     (EggSMClient *client);
35 void      egg_sm_client_quit_requested (EggSMClient *client);
36 void      egg_sm_client_quit_cancelled (EggSMClient *client);
37 void      egg_sm_client_quit           (EggSMClient *client);
38
39 #if defined (GDK_WINDOWING_X11)
40 # ifdef EGG_SM_CLIENT_BACKEND_XSMP
41 GType        egg_sm_client_xsmp_get_type (void);
42 EggSMClient *egg_sm_client_xsmp_new      (void);
43 # endif
44 # ifdef EGG_SM_CLIENT_BACKEND_DBUS
45 GType        egg_sm_client_dbus_get_type (void);
46 EggSMClient *egg_sm_client_dbus_new      (void);
47 # endif
48 #elif defined (GDK_WINDOWING_WIN32)
49 GType        egg_sm_client_win32_get_type (void);
50 EggSMClient *egg_sm_client_win32_new      (void);
51 #elif defined (GDK_WINDOWING_QUARTZ)
52 GType        egg_sm_client_osx_get_type (void);
53 EggSMClient *egg_sm_client_osx_new      (void);
54 #endif
55
56 G_END_DECLS
57
58
59 #endif /* __EGG_SM_CLIENT_PRIVATE_H__ */