]> git.0d.be Git - empathy.git/commitdiff
Add a first page to the assistant
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 1 Aug 2009 15:33:32 +0000 (17:33 +0200)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 22 Aug 2009 13:13:12 +0000 (14:13 +0100)
src/Makefile.am
src/empathy-account-assistant.c
src/empathy-account-assistant.h

index d0b86edfcc19b8ae66d6594bc537dd90a27b129b..9ac6b9bb3d9790c3578b0bb53edb93b4eaee43f6 100644 (file)
@@ -31,6 +31,7 @@ BUILT_SOURCES= \
 empathy_handwritten_source = \
        empathy.c                                                       \
        empathy-about-dialog.c empathy-about-dialog.h                   \
+       empathy-account-assistant.c empathy-account-assistant.h         \
        empathy-accounts-dialog.c empathy-accounts-dialog.h             \
        empathy-call-window.c empathy-call-window.h                     \
        empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h                       \
index d264df367bbd29dc9fbd85e16097608cd6583461..46194989200c3d6b85e615715401cf705c15d123 100644 (file)
 
 /* empathy-account-assistant.c */
 
+#include <glib/gi18n.h>
+
 #include "empathy-account-assistant.h"
 
 G_DEFINE_TYPE (EmpathyAccountAssistant, empathy_account_assistant,
     GTK_TYPE_ASSISTANT)
 
+static GtkWidget *
+account_assistant_build_introduction_page (void)
+{
+  GtkWidget *main_vbox, *hbox_1, *w;
+
+  main_vbox = gtk_vbox_new (FALSE, 12);
+  gtk_widget_show (main_vbox);
+  
+  hbox_1 = gtk_hbox_new (FALSE, 12);
+  gtk_box_pack_start (GTK_BOX (main_vbox), hbox_1, TRUE, TRUE, 6);
+  gtk_widget_show (hbox_1);
+
+  w = gtk_label_new (_("With Empathy you can chat with people online nearby "
+          "and with friends and colleagues who use Google Talk, AIM, "
+          "Windows Live and many other chat programs. With a microphone "
+          "or a webcam you can also have audio or video calls."));
+  gtk_box_pack_start (GTK_BOX (hbox_1), w, TRUE, TRUE, 6);
+  gtk_widget_show (w);
+
+  w = gtk_image_new_from_icon_name ("empathy", GTK_ICON_SIZE_DIALOG);
+  gtk_box_pack_start (GTK_BOX (hbox_1), w, TRUE, TRUE, 6);
+  gtk_widget_show (w);
+
+  return main_vbox;
+}
 
 static void
 empathy_account_assistant_class_init (EmpathyAccountAssistantClass *klass)
 {
+
 }
 
 static void
 empathy_account_assistant_init (EmpathyAccountAssistant *self)
 {
+  GtkWidget *page;
+
+  page = account_assistant_build_introduction_page ();
+  gtk_assistant_append_page (GTK_ASSISTANT (self), page);
 }
 
 EmpathyAccountAssistant*
index 03e99e2658d95d23ee8a5eb5913cd1c04714dc43..64711e72fad26e84182f79d63679526d14aeb87c 100644 (file)
@@ -24,6 +24,7 @@
 #define __EMPATHY_ACCOUNT_ASSISTANT_H__
 
 #include <glib-object.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS