2 * Copyright (C) 2009 Collabora Ltd.
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.
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.
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
18 * Authors: Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
21 /* empathy-account-assistant.c */
23 #include <glib/gi18n.h>
25 #include "empathy-account-assistant.h"
27 G_DEFINE_TYPE (EmpathyAccountAssistant, empathy_account_assistant,
31 account_assistant_build_introduction_page (void)
33 GtkWidget *main_vbox, *hbox_1, *w;
35 main_vbox = gtk_vbox_new (FALSE, 12);
36 gtk_widget_show (main_vbox);
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);
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);
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);
57 empathy_account_assistant_class_init (EmpathyAccountAssistantClass *klass)
63 empathy_account_assistant_init (EmpathyAccountAssistant *self)
67 page = account_assistant_build_introduction_page ();
68 gtk_assistant_append_page (GTK_ASSISTANT (self), page);
71 EmpathyAccountAssistant*
72 empathy_account_assistant_new (void)
74 return g_object_new (EMPATHY_TYPE_ACCOUNT_ASSISTANT, NULL);