Back to index

lightdm  1.3.2
Classes | Defines | Typedefs | Functions
display-manager.h File Reference
#include <glib-object.h>
#include "seat.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DisplayManager
struct  DisplayManagerClass

Defines

#define DISPLAY_MANAGER_TYPE   (display_manager_get_type())
#define DISPLAY_MANAGER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_MANAGER_TYPE, DisplayManager));

Typedefs

typedef struct DisplayManagerPrivate

Functions

GType display_manager_get_type (void)
DisplayManagerdisplay_manager_new (void)
gboolean display_manager_add_seat (DisplayManager *manager, Seat *seat)
GList * display_manager_get_seats (DisplayManager *manager)
void display_manager_start (DisplayManager *manager)
void display_manager_stop (DisplayManager *manager)

Class Documentation

struct DisplayManager

Definition at line 26 of file display-manager.h.

Collaboration diagram for DisplayManager:
Class Members
GObject parent_instance
DisplayManagerPrivate * priv

Define Documentation

#define DISPLAY_MANAGER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_MANAGER_TYPE, DisplayManager));

Definition at line 22 of file display-manager.h.

Definition at line 21 of file display-manager.h.


Typedef Documentation

typedef struct DisplayManagerPrivate

Definition at line 24 of file display-manager.h.


Function Documentation

gboolean display_manager_add_seat ( DisplayManager manager,
Seat seat 
)

Definition at line 87 of file display-manager.c.

{
    gboolean result;

    g_return_val_if_fail (!manager->priv->stopping, FALSE);

    result = seat_start (SEAT (seat));
    if (!result)
        return FALSE;

    manager->priv->seats = g_list_append (manager->priv->seats, g_object_ref (seat));
    g_signal_connect (seat, "stopped", G_CALLBACK (seat_stopped_cb), manager);
    g_signal_emit (manager, signals[SEAT_ADDED], 0, seat);

    return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 54 of file display-manager.c.

{
    return manager->priv->seats;
}

Here is the caller graph for this function:

GType display_manager_get_type ( void  )

Definition at line 48 of file display-manager.c.

{
    return g_object_new (DISPLAY_MANAGER_TYPE, NULL);
}

Here is the caller graph for this function:

Definition at line 105 of file display-manager.c.

{
    g_return_if_fail (manager != NULL);

    /* Disable Plymouth if no X servers are replacing it */
    if (plymouth_get_is_active ())
    {
        g_debug ("Stopping Plymouth, no displays replace it");      
        plymouth_quit (FALSE);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void display_manager_stop ( DisplayManager manager)

Definition at line 118 of file display-manager.c.

{
    GList *link;

    g_return_if_fail (manager != NULL);

    if (manager->priv->stopping)
        return;

    g_debug ("Stopping display manager");

    manager->priv->stopping = TRUE;

    for (link = manager->priv->seats; link; link = link->next)
    {
        Seat *seat = link->data;
        seat_stop (seat);
    }

    check_stopped (manager);
}

Here is the call graph for this function:

Here is the caller graph for this function: