276 | 276 |
|
277 | 277 |
g_dbus_connection_emit_signal (cloud_provider->connection,
|
278 | 278 |
NULL,
|
279 | |
"/org/freedesktop/CloudProviderServerExample",
|
|
279 |
"/org/freedesktop/CloudProviderServerExample/account1",
|
280 | 280 |
"org.freedesktop.CloudProvider1",
|
281 | 281 |
"CloudProviderChanged",
|
282 | 282 |
NULL,
|
|
298 | 298 |
g_debug ("Registering cloud provider server 'MyCloud'\n");
|
299 | 299 |
|
300 | 300 |
registration_id = g_dbus_connection_register_object (connection,
|
301 | |
"/org/freedesktop/CloudProviderServerExample",
|
|
301 |
"/org/freedesktop/CloudProviderServerExample/account1",
|
302 | 302 |
cloud_provider1_interface_info(),
|
303 | 303 |
&interface_vtable,
|
304 | 304 |
cloud_provider,
|
|
307 | 307 |
|
308 | 308 |
g_assert (registration_id > 0);
|
309 | 309 |
/* Export a menu for our own application */
|
310 | |
export_menu (connection, "/org/freedesktop/CloudProviderServerExample");
|
|
310 |
export_menu (connection, "/org/freedesktop/CloudProviderServerExample/account1");
|
|
311 |
|
|
312 |
registration_id = g_dbus_connection_register_object (connection,
|
|
313 |
"/org/freedesktop/CloudProviderServerExample/account2",
|
|
314 |
cloud_provider1_interface_info(),
|
|
315 |
&interface_vtable,
|
|
316 |
cloud_provider,
|
|
317 |
NULL, /* user_data_free_func */
|
|
318 |
NULL); /* GError** */
|
|
319 |
|
|
320 |
g_assert (registration_id > 0);
|
|
321 |
/* Export a menu for our own application */
|
|
322 |
export_menu (connection, "/org/freedesktop/CloudProviderServerExample/account2");
|
311 | 323 |
}
|
312 | 324 |
|
313 | 325 |
static void
|