diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-01 23:33:32 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 21:13:12 +0800 |
commit | a1382ef236e65efb2443268d3ed406229e747381 (patch) | |
tree | 824e2213483055c97675dd7bec0022ecb88886db /src | |
parent | 1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a (diff) | |
download | gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.tar gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.tar.gz gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.tar.bz2 gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.tar.lz gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.tar.xz gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.tar.zst gsoc2013-empathy-a1382ef236e65efb2443268d3ed406229e747381.zip |
Add a first page to the assistant
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/empathy-account-assistant.c | 32 | ||||
-rw-r--r-- | src/empathy-account-assistant.h | 1 |
3 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index d0b86edfc..9ac6b9bb3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 \ diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index d264df367..461949892 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -20,20 +20,52 @@ /* 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* diff --git a/src/empathy-account-assistant.h b/src/empathy-account-assistant.h index 03e99e265..64711e72f 100644 --- a/src/empathy-account-assistant.h +++ b/src/empathy-account-assistant.h @@ -24,6 +24,7 @@ #define __EMPATHY_ACCOUNT_ASSISTANT_H__ #include <glib-object.h> +#include <gtk/gtk.h> G_BEGIN_DECLS |