gtkaccessibilitymisc.c 1.4 KB
Newer Older
Matthias Clasen's avatar
Matthias Clasen committed
1
/* GTK+ - accessibility implementations
2 3 4 5 6 7 8 9 10 11 12 13 14
 * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
Javier Jardon's avatar
Javier Jardon committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 17 18 19 20
 */

#include "config.h"

#include <gtk/gtk.h>
Matthias Clasen's avatar
Matthias Clasen committed
21
#include "gtkaccessibilitymisc.h"
22

23
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
24

Matthias Clasen's avatar
Matthias Clasen committed
25
G_DEFINE_TYPE (GtkMiscImpl, _gtk_misc_impl, ATK_TYPE_MISC)
26 27

static void
Matthias Clasen's avatar
Matthias Clasen committed
28
gtk_misc_impl_threads_enter (AtkMisc *misc)
29
{
30
  gdk_threads_enter ();
31 32 33
}

static void
Matthias Clasen's avatar
Matthias Clasen committed
34
gtk_misc_impl_threads_leave (AtkMisc *misc)
35
{
36
  gdk_threads_leave ();
37 38 39
}

static void
Matthias Clasen's avatar
Matthias Clasen committed
40
_gtk_misc_impl_class_init (GtkMiscImplClass *klass)
41 42 43
{
  AtkMiscClass *misc_class = ATK_MISC_CLASS (klass);

Matthias Clasen's avatar
Matthias Clasen committed
44 45
  misc_class->threads_enter = gtk_misc_impl_threads_enter;
  misc_class->threads_leave = gtk_misc_impl_threads_leave;
46 47 48
}

static void
Matthias Clasen's avatar
Matthias Clasen committed
49
_gtk_misc_impl_init (GtkMiscImpl *misc)
50 51
{
}
52 53

G_GNUC_END_IGNORE_DEPRECATIONS