blob: dc04c702711443c75e032e9813dd5990893d4aa5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include <config.h>
#include <gtk/gtk.h>
#include <libempathy-gtk/empathy-ui-utils.h>
#include "empathy-account-assistant.h"
static void
managers_prepare_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
GtkWidget *assistant;
EmpathyConnectionManagers *managers = EMPATHY_CONNECTION_MANAGERS (source);
g_assert (empathy_connection_managers_prepare_finish (managers, result,
NULL));
assistant = empathy_account_assistant_show (NULL, managers);
gtk_widget_show_all (assistant);
g_signal_connect_swapped (assistant, "destroy",
G_CALLBACK (gtk_main_quit), NULL);
}
int main (int argc, char **argv)
{
EmpathyConnectionManagers *managers;
gtk_init (&argc, &argv);
empathy_gtk_init ();
managers = empathy_connection_managers_dup_singleton ();
empathy_connection_managers_prepare_async (managers,
managers_prepare_cb, NULL);
gtk_main ();
return 0;
}
|