Changeset 712:c1cfbaa00139 in mediastreamer2


Ignore:
Timestamp:
Oct 5, 2009 4:50:34 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

rename PortFile?-->Portfile
allow to answer/decline calls from main interface (not only the popup window).

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@700 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

Location:
linphone
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • linphone/Makefile.am

    r649 r712  
    139139 
    140140 
    141 PortFile:       $(top_srcdir)/scripts/PortFile.tmpl dist 
     141Portfile:       $(top_srcdir)/scripts/Portfile.tmpl dist 
    142142        sed -e 's/\@VERSION\@/$(LINPHONE_VERSION)/g' \ 
    143           -e 's/\@LINPHONE_MD5\@/$(shell md5sum linphone-$(VERSION).tar.gz | awk {'print $$1'})/' < $< > PortFile 
     143          -e 's/\@LINPHONE_MD5\@/$(shell md5sum linphone-$(VERSION).tar.gz | awk {'print $$1'})/' < $< > $@ 
     144 
     145Portfile-devel: $(top_srcdir)/scripts/Portfile-devel.tmpl dist 
     146        sed -e 's/\@VERSION\@/$(LINPHONE_VERSION)/g' \ 
     147          -e 's/\@LINPHONE_MD5\@/$(shell md5sum linphone-$(VERSION).tar.gz | awk {'print $$1'})/' < $< > $@ 
    144148 
    145149 
    146  
  • linphone/gtk-glade/main.c

    r700 r712  
    560560} 
    561561 
     562static void _linphone_gtk_accept_call(){ 
     563        LinphoneCore *lc=linphone_gtk_get_core(); 
     564        GtkWidget *mw=linphone_gtk_get_main_window(); 
     565        GtkWidget *icw=GTK_WIDGET(g_object_get_data(G_OBJECT(mw),"incoming_call")); 
     566        if (icw!=NULL){ 
     567                g_object_set_data(G_OBJECT(mw),"incoming_call",NULL); 
     568                gtk_widget_destroy(icw); 
     569        } 
     570 
     571        linphone_core_accept_call(lc,NULL); 
     572        linphone_gtk_call_started(linphone_gtk_get_main_window()); 
     573        if (linphone_gtk_use_in_call_view()){ 
     574                linphone_gtk_in_call_view_set_in_call(); 
     575                linphone_gtk_show_in_call_view(); 
     576        } 
     577        linphone_gtk_enable_mute_button( 
     578                GTK_TOGGLE_BUTTON(linphone_gtk_get_widget(linphone_gtk_get_main_window(),"main_mute")) 
     579                ,TRUE); 
     580} 
     581 
    562582void linphone_gtk_start_call(GtkWidget *w){ 
    563583        LinphoneCore *lc=linphone_gtk_get_core(); 
    564         if (linphone_core_inc_invite_pending(lc) || linphone_core_in_call(lc)) { 
     584        if (linphone_core_inc_invite_pending(lc)){ 
     585                /*accept the call*/ 
     586                _linphone_gtk_accept_call(); 
     587        }else if (linphone_core_in_call(lc)) { 
    565588                /*already in call */ 
    566589        }else{ 
     
    596619 
    597620void linphone_gtk_accept_call(GtkWidget *button){ 
    598         LinphoneCore *lc=linphone_gtk_get_core(); 
    599         linphone_core_accept_call(lc,NULL); 
    600         g_object_set_data(G_OBJECT(linphone_gtk_get_main_window()),"incoming_call",NULL); 
    601         gtk_widget_destroy(gtk_widget_get_toplevel(button)); 
    602         linphone_gtk_call_started(linphone_gtk_get_main_window()); 
    603         if (linphone_gtk_use_in_call_view()){ 
    604                 linphone_gtk_in_call_view_set_in_call(); 
    605                 linphone_gtk_show_in_call_view(); 
    606         } 
    607         linphone_gtk_enable_mute_button( 
    608                 GTK_TOGGLE_BUTTON(linphone_gtk_get_widget(linphone_gtk_get_main_window(),"main_mute")) 
    609                 ,TRUE); 
     621        _linphone_gtk_accept_call(); 
    610622} 
    611623 
  • linphone/scripts/Makefile.am

    r639 r712  
    1 EXTRA_DIST=builder-mingw.mk PortFile.tmpl 
     1EXTRA_DIST=builder-mingw.mk Portfile.tmpl Portfile-devel.tmpl 
    22 
Note: See TracChangeset for help on using the changeset viewer.