1 /* GTK+ - accessibility implementations
2  * Copyright 2001, 2002, 2003 Sun Microsystems 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, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #include "config.h"
19 
20 #include <gtk/gtk.h>
21 #include "gtkaccessibilitymisc.h"
22 
23 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
24 
G_DEFINE_TYPE(GtkMiscImpl,_gtk_misc_impl,ATK_TYPE_MISC)25 G_DEFINE_TYPE (GtkMiscImpl, _gtk_misc_impl, ATK_TYPE_MISC)
26 
27 static void
28 gtk_misc_impl_threads_enter (AtkMisc *misc)
29 {
30   gdk_threads_enter ();
31 }
32 
33 static void
gtk_misc_impl_threads_leave(AtkMisc * misc)34 gtk_misc_impl_threads_leave (AtkMisc *misc)
35 {
36   gdk_threads_leave ();
37 }
38 
39 static void
_gtk_misc_impl_class_init(GtkMiscImplClass * klass)40 _gtk_misc_impl_class_init (GtkMiscImplClass *klass)
41 {
42   AtkMiscClass *misc_class = ATK_MISC_CLASS (klass);
43 
44   misc_class->threads_enter = gtk_misc_impl_threads_enter;
45   misc_class->threads_leave = gtk_misc_impl_threads_leave;
46 }
47 
48 static void
_gtk_misc_impl_init(GtkMiscImpl * misc)49 _gtk_misc_impl_init (GtkMiscImpl *misc)
50 {
51 }
52 
53 G_GNUC_END_IGNORE_DEPRECATIONS
54