~ubuntu-branches/ubuntu/vivid/at-spi/vivid

« back to all changes in this revision

Viewing changes to registryd/registry-main.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-01-21 10:19:01 UTC
  • Revision ID: james.westby@ubuntu.com-20110121101901-yo4xut12tmdjhmil
Tags: 1.32.0-0ubuntu2
* 03_Add-a-gsettings-key-to-specify-the-location-of-libat.patch:
  Patch from upstream to provide a way to set the location of the
  atk-bridge module, thanks to Alejandro Piñeiro for the patch
* Tweak the above patch to set the default location to gtk-2.0
* debian/control: Add dh-autoreconf to build dependencies for the above patch
* Create series file for patches, it wasn't created at time of switch over
  to format 3.0, so patches in package were not being applied
* debian/at-spi.install: Ship the gsettings schema file

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
 
217
217
  obj_id = "OAFIID:Accessibility_Registry:1.0";
218
218
 
219
 
  registry = spi_registry_new ();
220
 
 
221
219
  display_name = g_getenv ("AT_SPI_DISPLAY");
222
220
  if (!display_name)
223
221
  {
224
222
      display_name = g_getenv ("DISPLAY");
 
223
      if (!display_name) {
 
224
#ifdef AT_SPI_DEBUG
 
225
        fprintf (stderr, "SpiRegistry Message: SpiRegistry needs DISPLAY or AT_SPI_DISPLAY (both NULL).\n");
 
226
#endif
 
227
        /* bail out */
 
228
        return 1;
 
229
      }
 
230
 
225
231
      cp = strrchr (display_name, '.');
226
232
      dp = strrchr (display_name, ':');
227
233
      if (cp && dp && (cp > dp)) *cp = '\0';
228
234
  }
 
235
 
 
236
  registry = spi_registry_new ();
 
237
 
229
238
  ret = bonobo_activation_register_active_server (
230
239
          obj_id,
231
240
          bonobo_object_corba_objref (bonobo_object (registry)),