blob: 64c64b86c9a4b0029e39a1c5fb600f7f99477e1f (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
* evolution-user-prompter.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the program; if not, see <http://www.gnu.org/licenses/>
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#include <locale.h>
#include <libintl.h>
#include "prompt-user.h"
gint
main (gint argc,
gchar **argv)
{
EDBusServer *server;
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
prompt_user_init (&argc, &argv);
e_gdbus_templates_init_main_thread ();
server = e_user_prompter_server_new ();
g_signal_connect (
server, "prompt",
G_CALLBACK (prompt_user_show), NULL);
g_print ("Prompter is up and running...\n");
e_dbus_server_run (server, TRUE);
g_object_unref (server);
g_print ("Bye.\n");
return 0;
}
|