Back to index

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

Go to the source code of this file.

Functions

static gboolean done_timeout_cb (gpointer data)
int main (int argc, char *argv)

Variables

static gboolean passed = TRUE
static GMainLoop * mainloop = NULL

Function Documentation

static gboolean done_timeout_cb ( gpointer  data) [static]

Definition at line 9 of file test-simple-client.c.

{
       g_debug("All done.");
       g_main_loop_quit(mainloop);
       return FALSE;
}

Here is the caller graph for this function:

int main ( int  argc,
char *  argv 
)

Definition at line 17 of file test-simple-client.c.

{
       g_type_init();

       IndicateIndicator * indicator = indicate_indicator_new();
       indicate_indicator_show(indicator);

       g_timeout_add_seconds(2, done_timeout_cb, indicator);

       mainloop = g_main_loop_new(NULL, FALSE);
       g_main_loop_run(mainloop);

       return !passed;
}

Here is the call graph for this function:


Variable Documentation

GMainLoop* mainloop = NULL [static]

Definition at line 6 of file test-simple-client.c.

gboolean passed = TRUE [static]

Definition at line 5 of file test-simple-client.c.