Back to index

libindicate  12.10.0
Defines | Functions | Variables
test-indicator-display-client.c File Reference
#include <glib.h>
#include "libindicate/indicator.h"
#include "libindicate/server.h"
#include "libindicate/interests.h"

Go to the source code of this file.




static void indicator_displayed (IndicateIndicator *indicator, gboolean displayed, gpointer user_data)
static gboolean done_timeout_cb (gpointer data)
static gboolean idle_func (gpointer data)
int main (int argc, char *argv)


static gboolean passed = TRUE
static GMainLoop * mainloop = NULL
static int count = 0
static guint indicators = 0

Define Documentation


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

Function Documentation

static gboolean done_timeout_cb ( gpointer  data) [static]

Definition at line 26 of file test-indicator-display-client.c.

       g_debug("%d of %d indicators displayed", count, MAX_INDICATOR_COUNT);
       if (count != MAX_INDICATOR_COUNT) {
              passed = FALSE;
       return FALSE;

Here is the caller graph for this function:

static gboolean idle_func ( gpointer  data) [static]

Definition at line 38 of file test-indicator-display-client.c.

       if (indicators == MAX_INDICATOR_COUNT) {
              return FALSE;

       IndicateIndicator * indicator = indicate_indicator_new();
       g_signal_connect(G_OBJECT(indicator), INDICATE_INDICATOR_SIGNAL_DISPLAYED, G_CALLBACK(indicator_displayed), NULL);

       return TRUE;

Here is the call graph for this function:

Here is the caller graph for this function:

static void indicator_displayed ( IndicateIndicator *  indicator,
gboolean  displayed,
gpointer  user_data 
) [static]

Definition at line 15 of file test-indicator-display-client.c.

       g_debug("Indicator displayed: %s", displayed ? "true" : "false");
       if (displayed) {


Here is the caller graph for this function:

int main ( int  argc,
char *  argv 

Definition at line 53 of file test-indicator-display-client.c.


       g_idle_add(idle_func, NULL);
       g_timeout_add(MAX_INDICATOR_COUNT * 10, done_timeout_cb, NULL);

       mainloop = g_main_loop_new(NULL, FALSE);

       return !passed;

Here is the call graph for this function:

Variable Documentation

int count = 0 [static]

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

guint indicators = 0 [static]

Definition at line 36 of file test-indicator-display-client.c.

GMainLoop* mainloop = NULL [static]

Definition at line 10 of file test-indicator-display-client.c.

gboolean passed = TRUE [static]

Definition at line 9 of file test-indicator-display-client.c.