Skip to content
Snippets Groups Projects
Commit 53d52081 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Launch account assistant from the main menu + translation

parent 47b3f914
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,10 @@ msgstr "_Sostener"
msgid "_Call"
msgstr "_Llamar"
#: sflphone-gtk/src/menus.c: 270
msgid "_Account Assistant"
msgstr ""
#: sflphone-gtk/src/menus.c: 423
msgid "_Accounts"
msgstr "_Cuentas"
......
......@@ -59,6 +59,10 @@ msgstr "_Mettre en attente"
msgid "_Call"
msgstr "_Actions"
#: sflphone-gtk/src/menus.c: 270
msgid "_Account Assistant"
msgstr "_Assistant SFLphone"
#: sflphone-gtk/src/menus.c: 423
msgid "_Accounts"
msgstr "Co_mptes"
......@@ -401,7 +405,7 @@ msgstr[1] "SFLphone - %i comptes enregistrés"
#: sflphone-gtk/src/assistant.c: 91
msgid "SFLphone account configuration wizard"
msgstr " Assistant de configuration de compte pour SFLphone"
msgstr "Assistant de configuration de compte"
#: sflphone-gtk/src/assistant.c: 122
msgid "Welcome to SFLphone!"
......@@ -433,7 +437,7 @@ msgstr "Configuration d'un compte IAX2"
#: sflphone-gtk/src/assistant.c: 256
msgid "You should probably enable this if you are behind a firewall."
msgstr "Vous devriez probablement activer cette option si vous vous trouvez derrière un pare-feu."
msgstr "Vous devriez probablement activer cette option si \nvous vous trouvez derrière un pare-feu."
#: sflphone-gtk/src/assistant.c: 289
msgid "Account Registration"
......
......@@ -57,6 +57,10 @@ msgstr ""
msgid "_Call"
msgstr ""
#: sflphone-gtk/src/menus.c: 270
msgid "_Account Assistant"
msgstr ""
#: sflphone-gtk/src/menus.c: 423
msgid "_Accounts"
msgstr ""
......
......@@ -90,6 +90,7 @@ build_wizard( void )
wiz->assistant = gtk_assistant_new( );
gtk_window_set_title( GTK_WINDOW(wiz->assistant), _("SFLphone account configuration wizard") );
gtk_window_set_position(GTK_WINDOW(wiz->assistant), GTK_WIN_POS_CENTER);
gtk_window_set_default_size(GTK_WINDOW(wiz->assistant), 200 , 200);
gtk_assistant_set_forward_page_func( GTK_ASSISTANT( wiz->assistant ), (GtkAssistantPageFunc) forward_page_func , NULL , NULL );
build_intro();
......
......@@ -125,6 +125,7 @@ create_main_window ()
gtk_window_set_default_size (GTK_WINDOW (window), 230, 320);
gtk_window_set_default_icon_from_file (ICON_DIR "/sflphone.png",
NULL);
gtk_window_set_position( GTK_WINDOW( window ) , GTK_WIN_POS_MOUSE);
/* Connect the destroy event of the window with our on_destroy function
* When the window is about to be destroyed we get a notificaiton and
......
......@@ -212,6 +212,12 @@ call_hang_up ( void * foo)
sflphone_hang_up();
}
static void
call_wizard ( void * foo)
{
build_wizard();
}
GtkWidget *
create_call_menu()
{
......@@ -261,6 +267,15 @@ create_call_menu()
menu_items = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items);
menu_items = gtk_image_menu_item_new_with_mnemonic(_("_Account Assistant"));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items);
g_signal_connect_swapped( G_OBJECT( menu_items ) , "activate" , G_CALLBACK( call_wizard ) , NULL );
gtk_widget_show (menu_items);
// Separator
menu_items = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items);
// Close menu to minimize the main window to the system tray
menu_items = gtk_image_menu_item_new_from_stock( GTK_STOCK_CLOSE, get_accel_group());
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment