Changeset 2226
- Timestamp:
- 06/19/07 17:47:20
- Files:
-
- trunk/libtinymail-maemo/test-conic.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-maemo/test-conic.c
r2217 r2226 9 9 #include <conicconnection.h> 10 10 #include <conicconnectionevent.h> 11 12 #include <libosso.h> 11 13 12 14 #include <stdio.h> … … 82 84 { 83 85 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 } 84 96 85 97 GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL); … … 101 113 G_CALLBACK(on_connection_event), NULL); 102 114 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 103 123 104 124 g_signal_connect (G_OBJECT (window), "delete_event",
