1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#include <stdio.h> #include <lightdm/greeter.h> static void connected_cb (LdmGreeter *greeter) { printf ("CONNECTED\n"); } int main (int argc, char **argv) { LdmGreeter *greeter; g_type_init (); greeter = ldm_greeter_new (); g_object_connect (greeter, "connected", G_CALLBACK (connected_cb), NULL); ldm_greeter_connect_to_server (greeter); g_main_loop_run (g_main_loop_new (NULL, FALSE)); return 0; } |