projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug in Value->setCurrentValue, and added GtkRange to regression test
[platform/core/uifw/at-spi2-atk.git]
/
registryd
/
registry-main.c
diff --git
a/registryd/registry-main.c
b/registryd/registry-main.c
index
f2d4f38
..
c3f5509
100644
(file)
--- a/
registryd/registry-main.c
+++ b/
registryd/registry-main.c
@@
-25,35
+25,44
@@
#endif
#include <libbonobo.h>
#endif
#include <libbonobo.h>
+#include <glib/gmain.h>
#include "registry.h"
int
#include "registry.h"
int
-main (int argc,
- char **argv)
+main (int argc, char **argv)
{
{
- Registry *registry;
- char *obj_id;
+ int ret;
+ char *obj_id;
+ SpiRegistry *registry;
-
if (!bonobo_init (&argc, argv))
-
{
-
g_error ("Could not initialize oaf / Bonobo");
-
}
+ if (!bonobo_init (&argc, argv))
+ {
+ g_error ("Could not initialize oaf / Bonobo");
+ }
-
obj_id = "OAFIID:Accessibility_Registry:proto0.1";
+ obj_id = "OAFIID:Accessibility_Registry:proto0.1";
-
registry =
registry_new ();
+
registry = spi_
registry_new ();
-
oaf
_active_server_register (
-
obj_id,
-
bonobo_object_corba_objref (bonobo_object (registry)));
+
ret = bonobo_activation
_active_server_register (
+ obj_id,
+ bonobo_object_corba_objref (bonobo_object (registry)));
+ if (ret != Bonobo_ACTIVATION_REG_SUCCESS)
+ {
#ifdef AT_SPI_DEBUG
#ifdef AT_SPI_DEBUG
-
fprintf (stderr, "Registry Message: Registry daemon is
running.\n");
+
fprintf (stderr, "SpiRegistry Message: SpiRegistry daemon was already
running.\n");
#endif
#endif
- bonobo_main ();
+ }
+ else
+ {
+#ifdef AT_SPI_DEBUG
+ fprintf (stderr, "SpiRegistry Message: SpiRegistry daemon is running.\n");
+#endif
+ g_timeout_add_full (G_PRIORITY_HIGH_IDLE, 200, registry->kbd_event_hook, registry, NULL);
+ bonobo_main ();
+ }
-
return 0;
+ return 0;
}
}
-
-