~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to src/display.c

  • Committer: Robert Ancell
  • Date: 2011-06-03 04:29:00 UTC
  • Revision ID: robert.ancell@canonical.com-20110603042900-m3s3sl0shaomban4
More plumbing for guest logins

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
}
664
664
 
665
665
static void
 
666
greeter_login_as_guest_cb (Greeter *greeter, const gchar *session, const gchar *language, Display *display)
 
667
{
 
668
    //gchar *username;
 
669
 
 
670
    // FIXME: Create a guest session
 
671
 
 
672
    //greeter_login_cb (greeter, username, session, language, display);
 
673
}
 
674
 
 
675
static void
666
676
greeter_quit_cb (Greeter *greeter, Display *display)
667
677
{
668
678
    g_debug ("Greeter quit");
736
746
        greeter_set_layout (display->priv->greeter_session, display->priv->default_layout);
737
747
        greeter_set_session (display->priv->greeter_session, display->priv->default_session);
738
748
        g_signal_connect (G_OBJECT (display->priv->greeter_session), "login", G_CALLBACK (greeter_login_cb), display);
 
749
        g_signal_connect (G_OBJECT (display->priv->greeter_session), "login-as-guest", G_CALLBACK (greeter_login_as_guest_cb), display);
739
750
        g_signal_connect (G_OBJECT (display->priv->greeter_session), "quit", G_CALLBACK (greeter_quit_cb), display);
740
751
        session_set_username (SESSION (display->priv->greeter_session), username);
741
752
        session_set_command (SESSION (display->priv->greeter_session), command);