X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=registryd%2Fregistry-main.c;h=5c92be23e735faa9e44efe7fc85a69ce5f55dc49;hb=66c4375c7cd9a0a01e79f562e1bb0326fc4dcd21;hp=d9fc572306f740befa6d0308a758be05dfbe3ad5;hpb=9bf98cd378e1572019a743bb4bf18e896b4fcd1d;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/registryd/registry-main.c b/registryd/registry-main.c index d9fc572..5c92be2 100644 --- a/registryd/registry-main.c +++ b/registryd/registry-main.c @@ -1,12 +1,39 @@ +/* + * AT-SPI - Assistive Technology Service Provider Interface + * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) + * + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifdef AT_SPI_DEBUG #include +#endif + #include +#include #include "registry.h" int main (int argc, char **argv) { - Registry *registry; + SpiRegistry *registry; + GSource *keyevent_source; char *obj_id; if (!bonobo_init (&argc, argv)) @@ -16,13 +43,21 @@ main (int argc, obj_id = "OAFIID:Accessibility_Registry:proto0.1"; - registry = registry_new (); + registry = spi_registry_new (); - oaf_active_server_register ( + bonobo_activation_active_server_register ( obj_id, bonobo_object_corba_objref (bonobo_object (registry))); - fprintf (stderr, "Registry Message: Registry daemon is running.\n"); +#ifdef AT_SPI_DEBUG + fprintf (stderr, "SpiRegistry Message: SpiRegistry daemon is running.\n"); +#endif + + gdk_init(&argc, &argv); + g_timeout_add_full (G_PRIORITY_HIGH_IDLE, 200, registry->kbd_event_hook, registry, NULL); +/* keyevent_source = + g_source_new (registry->kbd_event_hook, sizeof (GSourceFunc)); + g_source_attach (keyevent_source, g_main_context_default());*/ bonobo_main (); return 0;