Changeset 2226

Show
Ignore:
Timestamp:
06/19/07 17:47:20
Author:
murrayc
Message:

Improved the test case.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-maemo/test-conic.c

    r2217 r2226  
    99#include <conicconnection.h> 
    1010#include <conicconnectionevent.h> 
     11 
     12#include <libosso.h> 
    1113 
    1214#include <stdio.h> 
     
    8284{ 
    8385        gtk_init (&argc, &argv); 
     86 
     87        osso_context_t * osso_context = osso_initialize( 
     88            "test_hello", "0.0.1", TRUE, NULL); 
     89                
     90        /* Check that initialization was ok */ 
     91        if (osso_context == NULL) 
     92        { 
     93                printf("osso_initialize() failed.\n"); 
     94            return OSSO_ERROR; 
     95        } 
    8496     
    8597        GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL); 
     
    101113                          G_CALLBACK(on_connection_event), NULL); 
    102114 
     115        /* This might be necessary to make the connection object  
     116         * actually emit the signal, though the documentation says  
     117         * that they should be sent even when this is not set,  
     118         * when we explicitly try to connect.  
     119         * The signal still does not seem to be emitted. 
     120         */ 
     121        g_object_set (cnx, "automatic-connection-events", TRUE, NULL); 
     122 
    103123 
    104124        g_signal_connect (G_OBJECT (window), "delete_event",