add --iconified option.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@650 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2009-09-11 20:05:07 +00:00
parent 1396c2a214
commit b4b55ae80c

View file

@ -76,6 +76,8 @@ static LinphoneCoreVTable vtable={
static gboolean verbose=0;
static gboolean auto_answer = 0;
static gchar * addr_to_call = NULL;
static gboolean iconified=FALSE;
static GOptionEntry linphone_options[]={
{
.long_name="verbose",
@ -84,6 +86,13 @@ static GOptionEntry linphone_options[]={
.arg_data= (gpointer)&verbose,
.description=N_("log to stdout some debug information while running.")
},
{
.long_name="iconified",
.short_name= '\0',
.arg=G_OPTION_ARG_NONE,
.arg_data= (gpointer)&iconified,
.description=N_("Start only in the system tray, do not show the main interface.")
},
{ /* zsd addition */
.long_name = "call",
.short_name = 'c',
@ -1129,7 +1138,8 @@ int main(int argc, char *argv[]){
gtk_timeout_add(30,(GtkFunction)linphone_gtk_check_logs,(gpointer)NULL);
linphone_gtk_init_main_window();
linphone_gtk_init_status_icon();
linphone_gtk_show_main_window();
if (!iconified)
linphone_gtk_show_main_window();
linphone_gtk_check_for_new_version();
gtk_main();