1 /* vi:set et ai sw=2 sts=2 ts=2: */
2 /*-
3  * Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20 
21 #if !defined(THUNARX_INSIDE_THUNARX_H) && !defined(THUNARX_COMPILATION)
22 #error "Only <thunarx/thunarx.h> can be included directly, this file may disappear or change contents"
23 #endif
24 
25 #ifndef __THUNARX_PRIVATE_H__
26 #define __THUNARX_PRIVATE_H__
27 
28 #include <glib-object.h>
29 
30 #define THUNAR_THREADS_ENTER \
31 G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
32   gdk_threads_enter(); \
33 G_GNUC_END_IGNORE_DEPRECATIONS
34 
35 #define THUNAR_THREADS_LEAVE \
36 G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
37   gdk_threads_leave (); \
38 G_GNUC_END_IGNORE_DEPRECATIONS
39 
40 G_BEGIN_DECLS
41 
42 #define I_(string) (g_intern_static_string ((string)))
43 
44 G_GNUC_INTERNAL
45 void   thunarx_object_list_take_reference (GList      *object_list,
46                                            gpointer    target);
47 
48 G_GNUC_INTERNAL
49 gchar *thunarx_param_spec_get_option_name (GParamSpec *pspec) G_GNUC_MALLOC;
50 
51 G_END_DECLS
52 
53 #endif /* !__THUNARX_PRIVATE_H__ */
54