]> git.0d.be Git - empathy.git/blob - src/empathy-account-assistant.c
46194989200c3d6b85e615715401cf705c15d123
[empathy.git] / src / empathy-account-assistant.c
1 /*
2  * Copyright (C) 2009 Collabora Ltd.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Authors: Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
19  */
20
21 /* empathy-account-assistant.c */
22
23 #include <glib/gi18n.h>
24
25 #include "empathy-account-assistant.h"
26
27 G_DEFINE_TYPE (EmpathyAccountAssistant, empathy_account_assistant,
28     GTK_TYPE_ASSISTANT)
29
30 static GtkWidget *
31 account_assistant_build_introduction_page (void)
32 {
33   GtkWidget *main_vbox, *hbox_1, *w;
34
35   main_vbox = gtk_vbox_new (FALSE, 12);
36   gtk_widget_show (main_vbox);
37   
38   hbox_1 = gtk_hbox_new (FALSE, 12);
39   gtk_box_pack_start (GTK_BOX (main_vbox), hbox_1, TRUE, TRUE, 6);
40   gtk_widget_show (hbox_1);
41
42   w = gtk_label_new (_("With Empathy you can chat with people online nearby "
43           "and with friends and colleagues who use Google Talk, AIM, "
44           "Windows Live and many other chat programs. With a microphone "
45           "or a webcam you can also have audio or video calls."));
46   gtk_box_pack_start (GTK_BOX (hbox_1), w, TRUE, TRUE, 6);
47   gtk_widget_show (w);
48
49   w = gtk_image_new_from_icon_name ("empathy", GTK_ICON_SIZE_DIALOG);
50   gtk_box_pack_start (GTK_BOX (hbox_1), w, TRUE, TRUE, 6);
51   gtk_widget_show (w);
52
53   return main_vbox;
54 }
55
56 static void
57 empathy_account_assistant_class_init (EmpathyAccountAssistantClass *klass)
58 {
59
60 }
61
62 static void
63 empathy_account_assistant_init (EmpathyAccountAssistant *self)
64 {
65   GtkWidget *page;
66
67   page = account_assistant_build_introduction_page ();
68   gtk_assistant_append_page (GTK_ASSISTANT (self), page);
69 }
70
71 EmpathyAccountAssistant*
72 empathy_account_assistant_new (void)
73 {
74   return g_object_new (EMPATHY_TYPE_ACCOUNT_ASSISTANT, NULL);
75 }