~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to src/lightdm.c

  • Committer: robert.ancell at canonical
  • Date: 2011-02-20 10:27:53 UTC
  • Revision ID: robert.ancell@canonical.com-20110220102753-2kehwju1amzcpoag
Use a private pipe for greeter<->server communication instead of D-Bus (needs to be fixed in liblightdm-qt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
}
254
254
 
255
255
static void
256
 
display_added_cb (DisplayManager *manager, Display *display)
257
 
{
258
 
    gchar *name;
259
 
    name = g_strdup_printf ("/org/lightdm/LightDisplayManager/Display%d", display_get_index (display));
260
 
    dbus_g_connection_register_g_object (bus, name, G_OBJECT (display));
261
 
    g_free (name);
262
 
}
263
 
 
264
 
static void
265
256
signal_cb (ChildProcess *process, int signum)
266
257
{
267
258
    g_debug ("Caught %s signal, exiting", g_strsignal (signum));
317
308
    dbus_g_connection_register_g_object (bus, "/org/lightdm/LightDisplayManager/Users", G_OBJECT (user_manager));
318
309
 
319
310
    display_manager = display_manager_new (config_file);
320
 
    g_signal_connect (display_manager, "display-added", G_CALLBACK (display_added_cb), NULL);
321
311
    dbus_g_connection_register_g_object (bus, "/org/lightdm/LightDisplayManager", G_OBJECT (display_manager));
322
312
 
323
313
    display_manager_start (display_manager);