Back to index

libindicate  12.10.0
Functions | Variables
test-indicator-display-server.c File Reference
#include <glib.h>
#include "libindicate/listener.h"
#include "test-max-indicators-list.h"

Go to the source code of this file.


static void indicator_added (IndicateListener *listener, IndicateListenerServer *server, IndicateListenerIndicator *indicator, gpointer data)
static gboolean failed_cb (gpointer data)
static void server_removed (void)
int main (int argc, char *argv)


static gboolean passed = TRUE
static GMainLoop * mainloop = NULL

Function Documentation

static gboolean failed_cb ( gpointer  data) [static]

Definition at line 17 of file test-indicator-display-server.c.

       g_debug("Done indicatating displayed");
       return FALSE;

Here is the caller graph for this function:

static void indicator_added ( IndicateListener *  listener,
IndicateListenerServer *  server,
IndicateListenerIndicator *  indicator,
gpointer  data 
) [static]

Definition at line 11 of file test-indicator-display-server.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv 

Definition at line 33 of file test-indicator-display-server.c.


       IndicateListener * listener = indicate_listener_ref_default();

       g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_INDICATOR_ADDED, G_CALLBACK(indicator_added), NULL);
       g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_SERVER_REMOVED, G_CALLBACK(server_removed), NULL);

       g_timeout_add_seconds(2, failed_cb, NULL);

       mainloop = g_main_loop_new(NULL, FALSE);

       return !passed;

Here is the call graph for this function:

static void server_removed ( void  ) [static]

Definition at line 25 of file test-indicator-display-server.c.

       g_debug("Server went away, exiting.");

Here is the caller graph for this function:

Variable Documentation

GMainLoop* mainloop = NULL [static]

Definition at line 7 of file test-indicator-display-server.c.

gboolean passed = TRUE [static]

Definition at line 6 of file test-indicator-display-server.c.