1 /* ATK - Accessibility Toolkit
2 * Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
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.
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.
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., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #include "atkwindow.h"
21 #include "atkmarshal.h"
36 static guint atk_window_signals[LAST_SIGNAL] = { 0 };
39 atk_window_add_signal (const gchar *name)
41 return g_signal_new (name,
45 (GSignalAccumulator) NULL, NULL,
46 g_cclosure_marshal_VOID__VOID,
51 typedef AtkWindowIface AtkWindowInterface;
52 G_DEFINE_INTERFACE (AtkWindow, atk_window, ATK_TYPE_OBJECT)
55 atk_window_default_init (AtkWindowIface *iface)
57 static gboolean initialized = FALSE;
61 atk_window_signals[ACTIVATE] = atk_window_add_signal ("activate");
62 atk_window_signals[CREATE] = atk_window_add_signal ("create");
63 atk_window_signals[DEACTIVATE] = atk_window_add_signal ("deactivate");
64 atk_window_signals[DESTROY] = atk_window_add_signal ("destroy");
65 atk_window_signals[MAXIMIZE] = atk_window_add_signal ("maximize");
66 atk_window_signals[MINIMIZE] = atk_window_add_signal ("minimize");
67 atk_window_signals[MOVE] = atk_window_add_signal ("move");
68 atk_window_signals[RESIZE] = atk_window_add_signal ("resize");
69 atk_window_signals[RESTORE] = atk_window_add_signal ("restore");