Changeset 680:4f4f7f31daa2 in mediastreamer2


Ignore:
Timestamp:
Sep 21, 2009 1:46:56 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

gui modifications

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

Location:
linphone
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • linphone/configure.in

    r676 r680  
    11dnl Process this file with autoconf to produce a configure script. 
    22 
    3 AC_INIT([linphone],[3.2.0],[linphone-developers@nongnu.org]) 
     3AC_INIT([linphone],[3.2.0.99],[linphone-developers@nongnu.org]) 
    44AC_CANONICAL_SYSTEM 
    55 
  • linphone/coreapi/exevents.c

    r629 r680  
    966966        char *ru; 
    967967        osip_header_t *h=NULL; 
    968         osip_uri_to_str(requri,&ru); 
    969         msg=ms_strdup_printf(_("Registration on %s successful."),ru); 
    970         lc->vtable.display_status(lc,msg); 
    971         ms_free(msg); 
    972         osip_free(ru); 
     968 
    973969        cfg=linphone_core_get_proxy_config_from_rid(lc,ev->rid); 
    974970        ms_return_if_fail(cfg!=NULL); 
     971 
    975972        gstate_new_state(lc, GSTATE_REG_OK, NULL); 
    976973        osip_message_get_expires(ev->request,0,&h); 
     
    979976                linphone_proxy_config_register_again_with_updated_contact(cfg,ev->request,ev->response); 
    980977        }else cfg->registered=FALSE; 
     978         
     979        osip_uri_to_str(requri,&ru); 
     980        if (cfg->registered) msg=ms_strdup_printf(_("Registration on %s successful."),ru); 
     981        else msg=ms_strdup_printf(_("Unregistration on %s done."),ru); 
     982        lc->vtable.display_status(lc,msg); 
     983        ms_free(msg); 
     984        osip_free(ru); 
    981985} 
    982986 
  • linphone/coreapi/siplogin.c

    r670 r680  
    6767        osip_from_to_str(parsed_uri,&tmp); 
    6868        linphone_proxy_config_set_identity(cfg,tmp); 
    69         auth=linphone_auth_info_new(parsed_uri->url->username,NULL,passwd,NULL,NULL); 
    70         linphone_core_add_auth_info(lc,auth); 
     69        if (passwd ) { 
     70                auth=linphone_auth_info_new(parsed_uri->url->username,NULL,passwd,NULL,NULL); 
     71                linphone_core_add_auth_info(lc,auth); 
     72        } 
    7173        linphone_proxy_config_enable_register(cfg,TRUE); 
    7274        linphone_proxy_config_done(cfg); 
     
    7476        osip_from_free(parsed_uri); 
    7577        ms_message("SipLogin: done"); 
     78        return 0; 
     79} 
     80 
     81static int sip_login_do_logout(SipSetupContext * ctx){ 
     82        LinphoneProxyConfig *cfg=sip_setup_context_get_proxy_config(ctx); 
     83        linphone_proxy_config_enable_register(cfg,FALSE); 
     84        linphone_proxy_config_done(cfg); 
    7685        return 0; 
    7786} 
     
    8392        .init_instance=sip_login_init_instance, 
    8493        .login_account=sip_login_do_login, 
     94        .logout_account=sip_login_do_logout 
    8595}; 
    8696 
  • linphone/coreapi/sipsetup.c

    r653 r680  
    181181} 
    182182 
     183int sip_setup_context_logout(SipSetupContext *ctx){ 
     184        if (ctx->funcs->logout_account){ 
     185                return ctx->funcs->logout_account(ctx); 
     186        } 
     187        return -1; 
     188} 
     189 
    183190void sip_setup_context_free(SipSetupContext *ctx){ 
    184191        if (ctx->funcs->uninit_instance){ 
  • linphone/coreapi/sipsetup.h

    r650 r680  
    9191        const char * (*get_notice)(SipSetupContext *ctx); 
    9292        const char ** (*get_domains)(SipSetupContext *ctx); 
     93        int (*logout_account)(SipSetupContext *ctx); 
    9394}; 
    9495 
     
    123124void sip_setup_context_free(SipSetupContext *ctx); 
    124125 
     126int sip_setup_context_logout(SipSetupContext *ctx); 
     127 
    125128/*internal methods*/ 
    126129struct _LinphoneProxyConfig *sip_setup_context_get_proxy_config(const SipSetupContext *ctx); 
  • linphone/gtk-glade/incall_view.c

    r665 r680  
    1212 
    1313#include "linphone.h" 
     14 
     15gboolean linphone_gtk_use_in_call_view(){ 
     16        static int val=-1; 
     17        if (val==-1) val=linphone_gtk_get_ui_config_int("use_incall_view",1); 
     18        return val; 
     19} 
    1420 
    1521void linphone_gtk_show_in_call_view(void){ 
     
    3339        char *displayname=NULL,*id=NULL; 
    3440        char *uri_label; 
     41 
     42        if (uri==NULL) { 
     43                ms_error("Strange: in call with nobody ?"); 
     44                return; 
     45        } 
    3546 
    3647        osip_from_init(&from); 
  • linphone/gtk-glade/linphone.h

    r660 r680  
    6565const gchar *linphone_gtk_get_ui_config(const char *key, const char *def); 
    6666int linphone_gtk_get_ui_config_int(const char *key, int def); 
     67void linphone_gtk_set_ui_config_int(const char *key , int val); 
     68 
    6769void linphone_gtk_open_browser(const char *url); 
    6870void linphone_gtk_check_for_new_version(void); 
     
    7880 
    7981/*functions controlling the different views*/ 
     82gboolean linphone_gtk_use_in_call_view(); 
    8083void linphone_gtk_show_in_call_view(void); 
    8184void linphone_gtk_show_idle_view(void); 
  • linphone/gtk-glade/loginframe.c

    r660 r680  
    2020#include "linphone.h" 
    2121 
     22void linphone_gtk_login_frame_connect_clicked(GtkWidget *button); 
     23void linphone_gtk_exit_login_frame(void); 
     24 
    2225enum { 
    2326        NetworkKindAdsl, 
    2427        NetworkKindOpticalFiber 
    2528}; 
     29 
     30static gboolean check_login_ok(LinphoneProxyConfig *cfg){ 
     31        if (linphone_proxy_config_is_registered(cfg)){ 
     32                linphone_gtk_exit_login_frame(); 
     33                return FALSE;    
     34        } 
     35        return TRUE; 
     36} 
     37 
     38static void do_login(SipSetupContext *ssctx, const char *identity, const char * passwd){ 
     39        GtkWidget *mw=linphone_gtk_get_main_window(); 
     40        if (sip_setup_context_login_account(ssctx,identity,passwd)==0){ 
     41                guint t=GPOINTER_TO_INT(g_object_get_data(G_OBJECT(mw),"login_tout")); 
     42                if (t!=0) g_source_remove(t); 
     43                t=g_timeout_add(50,(GSourceFunc)check_login_ok,sip_setup_context_get_proxy_config(ssctx)); 
     44                g_object_set_data(G_OBJECT(mw),"login_tout",GINT_TO_POINTER(t)); 
     45        } 
     46} 
     47 
     48static gboolean do_login_noprompt(LinphoneProxyConfig *cfg){ 
     49        SipSetupContext *ssctx=linphone_proxy_config_get_sip_setup_context(cfg); 
     50        if (ssctx==NULL) return TRUE;/*not ready ?*/ 
     51        do_login(ssctx,linphone_proxy_config_get_identity(cfg),NULL); 
     52        return FALSE; 
     53} 
    2654 
    2755void linphone_gtk_show_login_frame(LinphoneProxyConfig *cfg){ 
     
    3462        int nettype; 
    3563 
     64        if (linphone_gtk_get_ui_config_int("automatic_login",0) ){ 
     65                g_timeout_add(250,(GSourceFunc)do_login_noprompt,cfg); 
     66                return; 
     67        } 
     68 
     69        gtk_widget_hide(linphone_gtk_get_widget(mw,"logout")); 
    3670        gtk_widget_hide(linphone_gtk_get_widget(mw,"idle_frame")); 
    3771        gtk_widget_show(linphone_gtk_get_widget(mw,"login_frame")); 
     
    67101        gtk_widget_set_sensitive(linphone_gtk_get_widget(mw,"main_menu"),TRUE); 
    68102        gtk_widget_set_sensitive(linphone_gtk_get_widget(mw,"modes"),TRUE); 
     103        gtk_widget_show(linphone_gtk_get_widget(mw,"logout")); 
    69104} 
    70105 
    71 gboolean check_login_ok(LinphoneProxyConfig *cfg){ 
    72         if (linphone_proxy_config_is_registered(cfg)){ 
    73                 linphone_gtk_exit_login_frame(); 
    74                 return FALSE;    
     106void linphone_gtk_logout_clicked(){ 
     107        LinphoneCore *lc=linphone_gtk_get_core(); 
     108        LinphoneProxyConfig *cfg=NULL; 
     109        linphone_core_get_default_proxy(lc,&cfg); 
     110        if (cfg){ 
     111                SipSetupContext *ss=linphone_proxy_config_get_sip_setup_context(cfg); 
     112                if (ss){ 
     113                        sip_setup_context_logout(ss); 
     114                        linphone_gtk_set_ui_config_int("automatic_login",FALSE); 
     115                        linphone_gtk_show_login_frame(cfg); 
     116                } 
    75117        } 
    76         return TRUE; 
    77118} 
     119 
     120 
    78121 
    79122void linphone_gtk_login_frame_connect_clicked(GtkWidget *button){ 
     
    82125        const char *password; 
    83126        char *identity; 
    84         int netkind_id; 
    85         LinphoneCore *lc=linphone_gtk_get_core(); 
     127        gboolean autologin; 
    86128        LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)g_object_get_data(G_OBJECT(mw),"login_proxy_config"); 
     129        osip_from_t *from; 
    87130        SipSetupContext *ssctx=linphone_proxy_config_get_sip_setup_context(cfg); 
    88         osip_from_t *from; 
    89131 
    90132        username=gtk_entry_get_text(GTK_ENTRY(linphone_gtk_get_widget(mw,"login_username"))); 
    91133        password=gtk_entry_get_text(GTK_ENTRY(linphone_gtk_get_widget(mw,"login_password"))); 
    92134 
    93         netkind_id=gtk_combo_box_get_active(GTK_COMBO_BOX(linphone_gtk_get_widget(mw,"login_internet_kind"))); 
     135        autologin=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(linphone_gtk_get_widget(mw,"automatic_login"))); 
     136        linphone_gtk_set_ui_config_int("automatic_login",autologin); 
    94137 
     138        osip_from_init(&from); 
     139        osip_from_parse(from,linphone_proxy_config_get_identity(cfg)); 
     140        osip_free(from->url->username); 
     141        from->url->username=osip_strdup(username); 
     142        osip_from_to_str(from,&identity); 
     143        osip_from_free(from); 
     144        do_login(ssctx,identity,password); 
     145        /*we need to refresh the identities since the proxy config may have changed.*/ 
     146        linphone_gtk_load_identities(); 
     147} 
     148 
     149void linphone_gtk_internet_kind_changed(GtkWidget *combo){ 
     150        int netkind_id=gtk_combo_box_get_active(GTK_COMBO_BOX(combo)); 
     151        LinphoneCore *lc=linphone_gtk_get_core(); 
    95152        if (netkind_id==NetworkKindAdsl){ 
    96153                linphone_core_set_upload_bandwidth(lc,256); 
     
    101158                linphone_core_set_download_bandwidth(lc,0); 
    102159        } 
    103         osip_from_init(&from); 
    104         osip_from_parse(from,linphone_proxy_config_get_identity(cfg)); 
    105         osip_free(from->url->username); 
    106         from->url->username=osip_strdup(username); 
    107         osip_from_to_str(from,&identity); 
    108         osip_from_free(from); 
    109         if (sip_setup_context_login_account(ssctx,identity,password)==0){ 
    110                 guint t=GPOINTER_TO_INT(g_object_get_data(G_OBJECT(mw),"login_tout")); 
    111                 if (t!=0) g_source_remove(t); 
    112                 t=g_timeout_add(50,(GSourceFunc)check_login_ok,cfg); 
    113                 g_object_set_data(G_OBJECT(mw),"login_tout",GINT_TO_POINTER(t)); 
    114         } 
    115         /*we need to refresh the identities since the proxy config may have changed.*/ 
    116         linphone_gtk_load_identities(); 
    117160} 
  • linphone/gtk-glade/main.c

    r678 r680  
    136136static char _config_file[1024]; 
    137137 
     138 
    138139const char *linphone_gtk_get_config_file(){ 
    139140        /*try accessing a local file first if exists*/ 
     
    173174} 
    174175 
    175 static void parse_item(const char *item, const char *window_name, GtkWidget *w){ 
     176static void parse_item(const char *item, const char *window_name, GtkWidget *w,  gboolean show){ 
    176177        char tmp[64]; 
    177178        char *dot; 
     
    183184                if (strcmp(window_name,tmp)==0){ 
    184185                        GtkWidget *wd=linphone_gtk_get_widget(w,dot); 
    185                         if (wd) gtk_widget_hide(wd); 
    186                 } 
    187         } 
    188 } 
    189  
    190 static void parse_hiddens(const char *hiddens, const char *window_name, GtkWidget *w){ 
     186                        if (wd) { 
     187                                if (!show) gtk_widget_hide(wd); 
     188                                else gtk_widget_show(wd); 
     189                        } 
     190                } 
     191        } 
     192} 
     193 
     194static void parse_widgets(const char *hiddens, const char *window_name, GtkWidget *w, gboolean show){ 
    191195        char item[64]; 
    192196        const char *i; 
     
    199203                        item[len]='\0'; 
    200204                        b=i+1; 
    201                         parse_item(item,window_name,w); 
     205                        parse_item(item,window_name,w,show); 
    202206                } 
    203207        } 
     
    206210                strncpy(item,b,len); 
    207211                item[len]='\0'; 
    208                 parse_item(item,window_name,w); 
     212                parse_item(item,window_name,w,show); 
    209213        } 
    210214} 
    211215 
    212216static void linphone_gtk_configure_window(GtkWidget *w, const char *window_name){ 
    213         static const char *icon_path=0; 
    214         static const char *hiddens=0; 
     217        static const char *icon_path=NULL; 
     218        static const char *hiddens=NULL; 
     219        static const char *shown=NULL; 
    215220        static bool_t config_loaded=FALSE; 
    216221        if (linphone_gtk_get_core()==NULL) return; 
    217222        if (config_loaded==FALSE){ 
    218223                hiddens=linphone_gtk_get_ui_config("hidden_widgets",NULL); 
     224                shown=linphone_gtk_get_ui_config("shown_widgets",NULL); 
    219225                icon_path=linphone_gtk_get_ui_config("icon",NULL); 
    220226                config_loaded=TRUE; 
    221227        } 
    222         if (hiddens){ 
    223                 parse_hiddens(hiddens,window_name,w); 
    224         } 
     228        if (hiddens) 
     229                parse_widgets(hiddens,window_name,w,FALSE); 
     230        if (shown) 
     231                parse_widgets(shown,window_name,w,TRUE); 
    225232        if (icon_path) { 
    226233                GdkPixbuf *pbuf=create_pixbuf(icon_path); 
     
    514521        gtk_widget_set_sensitive(linphone_gtk_get_widget(mw,"start_call"),TRUE); 
    515522        gtk_widget_hide_all(linphone_gtk_get_widget(mw,"go_to_call_view_box")); 
    516         linphone_gtk_in_call_view_terminate(error); 
     523        if (linphone_gtk_use_in_call_view()) 
     524                linphone_gtk_in_call_view_terminate(error); 
    517525        update_video_title(); 
    518526        g_object_set_data(G_OBJECT(mw),"incoming_call",NULL); 
     
    534542        gtk_widget_show_all(linphone_gtk_get_widget(mw,"go_to_call_view_box")); 
    535543        update_video_title(); 
    536         g_timeout_add(250,(GSourceFunc)in_call_timer,NULL); 
     544        if (linphone_gtk_use_in_call_view()) 
     545                g_timeout_add(250,(GSourceFunc)in_call_timer,NULL); 
    537546} 
    538547 
     
    556565                const char *entered=gtk_entry_get_text(GTK_ENTRY(uri_bar)); 
    557566                linphone_gtk_call_started(mw); 
    558                 linphone_gtk_in_call_view_set_calling(entered); 
    559                 linphone_gtk_show_in_call_view(); 
     567                if (linphone_gtk_use_in_call_view()){ 
     568                        linphone_gtk_in_call_view_set_calling(entered); 
     569                        linphone_gtk_show_in_call_view(); 
     570                } 
    560571                g_timeout_add(100,(GSourceFunc)linphone_gtk_start_call_do,uri_bar); 
    561572        } 
     
    585596        gtk_widget_destroy(gtk_widget_get_toplevel(button)); 
    586597        linphone_gtk_call_started(linphone_gtk_get_main_window()); 
    587         linphone_gtk_in_call_view_set_in_call(); 
    588         linphone_gtk_show_in_call_view(); 
     598        if (linphone_gtk_use_in_call_view()){ 
     599                linphone_gtk_in_call_view_set_in_call(); 
     600                linphone_gtk_show_in_call_view(); 
     601        } 
    589602} 
    590603 
     
    795808                case GSTATE_CALL_OUT_CONNECTED: 
    796809                case GSTATE_CALL_IN_CONNECTED: 
    797                         linphone_gtk_in_call_view_set_in_call(); 
     810                        if (linphone_gtk_use_in_call_view()) 
     811                                linphone_gtk_in_call_view_set_in_call(); 
    798812                break; 
    799813                case GSTATE_CALL_ERROR: 
  • linphone/gtk-glade/main.glade

    r660 r680  
    6565                    </child> 
    6666                    <child> 
     67                      <widget class="GtkImageMenuItem" id="logout"> 
     68                        <property name="label">gtk-disconnect</property> 
     69                        <property name="use_underline">True</property> 
     70                        <property name="use_stock">True</property> 
     71                        <signal name="activate" handler="linphone_gtk_logout_clicked"/> 
     72                      </widget> 
     73                    </child> 
     74                    <child> 
    6775                      <widget class="GtkSeparatorMenuItem" id="separatormenuitem2"> 
    6876                        <property name="visible">True</property> 
     
    346354                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    347355                    <child> 
    348                       <widget class="GtkFrame" id="frame6"> 
    349                         <property name="visible">True</property> 
    350                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    351                         <property name="label_xalign">0</property> 
    352                         <child> 
    353                           <widget class="GtkAlignment" id="alignment6"> 
     356                      <widget class="GtkVBox" id="vbox5"> 
     357                        <property name="visible">True</property> 
     358                        <property name="orientation">vertical</property> 
     359                        <child> 
     360                          <widget class="GtkFrame" id="contact_list_frame"> 
    354361                            <property name="visible">True</property> 
    355362                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    356                             <property name="left_padding">12</property> 
    357                             <child> 
    358                               <widget class="GtkVBox" id="vbox5"> 
     363                            <property name="label_xalign">0</property> 
     364                            <child> 
     365                              <widget class="GtkAlignment" id="alignment6"> 
    359366                                <property name="visible">True</property> 
    360367                                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    361                                 <property name="orientation">vertical</property> 
     368                                <property name="left_padding">12</property> 
    362369                                <child> 
    363                                   <widget class="GtkHBox" id="filtering_box"> 
     370                                  <widget class="GtkVBox" id="vbox7"> 
    364371                                    <property name="visible">True</property> 
    365                                     <child> 
    366                                       <widget class="GtkLabel" id="label2"> 
    367                                         <property name="visible">True</property> 
    368                                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    369                                         <property name="label" translatable="yes">Lookup:</property> 
    370                                       </widget> 
    371                                       <packing> 
    372                                         <property name="padding">12</property> 
     372                                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     373                                    <property name="orientation">vertical</property> 
     374                                    <child> 
     375                                      <widget class="GtkHBox" id="filtering_box"> 
     376                                        <property name="visible">True</property> 
     377                                        <child> 
     378                                          <widget class="GtkLabel" id="label2"> 
     379                                            <property name="visible">True</property> 
     380                                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     381                                            <property name="label" translatable="yes">Lookup:</property> 
     382                                          </widget> 
     383                                          <packing> 
     384                                            <property name="padding">12</property> 
     385                                            <property name="position">0</property> 
     386                                          </packing> 
     387                                        </child> 
     388                                        <child> 
     389                                          <widget class="GtkEntry" id="search_bar"> 
     390                                            <property name="visible">True</property> 
     391                                            <property name="can_focus">True</property> 
     392                                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     393                                            <property name="invisible_char">&#x25CF;</property> 
     394                                            <signal name="changed" handler="linphone_gtk_show_friends"/> 
     395                                          </widget> 
     396                                          <packing> 
     397                                            <property name="padding">4</property> 
     398                                            <property name="position">1</property> 
     399                                          </packing> 
     400                                        </child> 
     401                                        <child> 
     402                                          <widget class="GtkLabel" id="label_in"> 
     403                                            <property name="visible">True</property> 
     404                                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     405                                            <property name="label" translatable="yes">in</property> 
     406                                          </widget> 
     407                                          <packing> 
     408                                            <property name="padding">8</property> 
     409                                            <property name="position">2</property> 
     410                                          </packing> 
     411                                        </child> 
     412                                        <child> 
     413                                          <widget class="GtkComboBox" id="show_category"> 
     414                                            <property name="visible">True</property> 
     415                                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     416                                            <property name="active">0</property> 
     417                                            <property name="items" translatable="yes">All users 
     418Online users</property> 
     419                                            <signal name="changed" handler="linphone_gtk_show_friends"/> 
     420                                          </widget> 
     421                                          <packing> 
     422                                            <property name="padding">4</property> 
     423                                            <property name="position">3</property> 
     424                                          </packing> 
     425                                        </child> 
     426                                      </widget> 
     427                                      <packing> 
     428                                        <property name="expand">False</property> 
    373429                                        <property name="position">0</property> 
    374430                                      </packing> 
    375431                                    </child> 
    376432                                    <child> 
    377                                       <widget class="GtkEntry" id="search_bar"> 
    378                                         <property name="visible">True</property> 
    379                                         <property name="can_focus">True</property> 
    380                                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    381                                         <property name="invisible_char">&#x25CF;</property> 
    382                                         <signal name="changed" handler="linphone_gtk_show_friends"/> 
    383                                       </widget> 
    384                                       <packing> 
    385                                         <property name="padding">4</property> 
     433                                      <widget class="GtkScrolledWindow" id="scrolledwindow1"> 
     434                                        <property name="visible">True</property> 
     435                                        <property name="can_focus">True</property> 
     436                                        <property name="hscrollbar_policy">automatic</property> 
     437                                        <property name="vscrollbar_policy">automatic</property> 
     438                                        <child> 
     439                                          <widget class="GtkTreeView" id="contact_list"> 
     440                                            <property name="height_request">120</property> 
     441                                            <property name="visible">True</property> 
     442                                            <property name="can_focus">True</property> 
     443                                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     444                                            <signal name="button_press_event" handler="linphone_gtk_contact_list_button_pressed"/> 
     445                                            <signal name="cursor_changed" handler="linphone_gtk_contact_clicked"/> 
     446                                            <signal name="row_activated" handler="linphone_gtk_contact_activated"/> 
     447                                            <signal name="popup_menu" handler="linphone_gtk_popup_contact_menu"/> 
     448                                          </widget> 
     449                                        </child> 
     450                                      </widget> 
     451                                      <packing> 
    386452                                        <property name="position">1</property> 
    387453                                      </packing> 
    388454                                    </child> 
    389455                                    <child> 
    390                                       <widget class="GtkLabel" id="label_in"> 
    391                                         <property name="visible">True</property> 
    392                                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    393                                         <property name="label" translatable="yes">in</property> 
    394                                       </widget> 
    395                                       <packing> 
    396                                         <property name="padding">8</property> 
     456                                      <widget class="GtkHBox" id="directory_search_box"> 
     457                                        <child> 
     458                                          <widget class="GtkEntry" id="directory_search_entry"> 
     459                                            <property name="visible">True</property> 
     460                                            <property name="can_focus">True</property> 
     461                                            <property name="invisible_char">&#x25CF;</property> 
     462                                            <property name="secondary_icon_stock">gtk-find</property> 
     463                                            <property name="secondary_icon_activatable">True</property> 
     464                                            <property name="secondary_icon_sensitive">True</property> 
     465                                            <signal name="focus_in_event" handler="linphone_gtk_directory_search_focus_in"/> 
     466                                            <signal name="activate" handler="linphone_gtk_directory_search_activate"/> 
     467                                            <signal name="icon_press" handler="linphone_gtk_directory_search_activate"/> 
     468                                            <signal name="focus_out_event" handler="linphone_gtk_directory_search_focus_out"/> 
     469                                          </widget> 
     470                                          <packing> 
     471                                            <property name="position">0</property> 
     472                                          </packing> 
     473                                        </child> 
     474                                        <child> 
     475                                          <widget class="GtkButton" id="directory_search_button"> 
     476                                            <property name="label" translatable="yes">gtk-find</property> 
     477                                            <property name="visible">True</property> 
     478                                            <property name="can_focus">True</property> 
     479                                            <property name="receives_default">True</property> 
     480                                            <property name="use_stock">True</property> 
     481                                            <signal name="clicked" handler="linphone_gtk_directory_search_button_clicked"/> 
     482                                          </widget> 
     483                                          <packing> 
     484                                            <property name="expand">False</property> 
     485                                            <property name="position">1</property> 
     486                                          </packing> 
     487                                        </child> 
     488                                      </widget> 
     489                                      <packing> 
     490                                        <property name="expand">False</property> 
     491                                        <property name="fill">False</property> 
    397492                                        <property name="position">2</property> 
    398493                                      </packing> 
    399494                                    </child> 
    400                                     <child> 
    401                                       <widget class="GtkComboBox" id="show_category"> 
    402                                         <property name="visible">True</property> 
    403                                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    404                                         <property name="active">0</property> 
    405                                         <property name="items" translatable="yes">All users 
    406 Online users</property> 
    407                                         <signal name="changed" handler="linphone_gtk_show_friends"/> 
    408                                       </widget> 
    409                                       <packing> 
    410                                         <property name="padding">4</property> 
    411                                         <property name="position">3</property> 
    412                                       </packing> 
    413                                     </child> 
    414495                                  </widget> 
    415                                   <packing> 
    416                                     <property name="expand">False</property> 
    417                                     <property name="position">0</property> 
    418                                   </packing> 
    419496                                </child> 
    420                                 <child> 
    421                                   <widget class="GtkScrolledWindow" id="scrolledwindow1"> 
    422                                     <property name="visible">True</property> 
    423                                     <property name="can_focus">True</property> 
    424                                     <property name="hscrollbar_policy">automatic</property> 
    425                                     <property name="vscrollbar_policy">automatic</property> 
    426                                     <child> 
    427                                       <widget class="GtkTreeView" id="contact_list"> 
    428                                         <property name="height_request">120</property> 
    429                                         <property name="visible">True</property> 
    430                                         <property name="can_focus">True</property> 
    431                                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    432                                         <signal name="button_press_event" handler="linphone_gtk_contact_list_button_pressed"/> 
    433                                         <signal name="cursor_changed" handler="linphone_gtk_contact_clicked"/> 
    434                                         <signal name="row_activated" handler="linphone_gtk_contact_activated"/> 
    435                                         <signal name="popup_menu" handler="linphone_gtk_popup_contact_menu"/> 
    436                                       </widget> 
    437                                     </child> 
    438                                   </widget> 
    439                                   <packing> 
    440                                     <property name="position">1</property> 
    441                                   </packing> 
    442                                 </child> 
    443                                 <child> 
    444                                   <widget class="GtkHBox" id="directory_search_box"> 
    445                                     <child> 
    446                                       <widget class="GtkEntry" id="directory_search_entry"> 
    447                                         <property name="visible">True</property> 
    448                                         <property name="can_focus">True</property> 
    449                                         <property name="invisible_char">&#x25CF;</property> 
    450                                         <property name="secondary_icon_stock">gtk-find</property> 
    451                                         <property name="secondary_icon_activatable">True</property> 
    452                                         <property name="secondary_icon_sensitive">True</property> 
    453                                         <signal name="focus_in_event" handler="linphone_gtk_directory_search_focus_in"/> 
    454                                         <signal name="activate" handler="linphone_gtk_directory_search_activate"/> 
    455                                         <signal name="icon_press" handler="linphone_gtk_directory_search_activate"/> 
    456                                         <signal name="focus_out_event" handler="linphone_gtk_directory_search_focus_out"/> 
    457                                       </widget> 
    458                                       <packing> 
    459                                         <property name="position">0</property> 
    460                                       </packing> 
    461                                     </child> 
    462                                     <child> 
    463                                       <widget class="GtkButton" id="directory_search_button"> 
    464                                         <property name="label" translatable="yes">gtk-find</property> 
    465                                         <property name="visible">True</property> 
    466                                         <property name="can_focus">True</property> 
    467                                         <property name="receives_default">True</property> 
    468                                         <property name="use_stock">True</property> 
    469                                         <signal name="clicked" handler="linphone_gtk_directory_search_button_clicked"/> 
    470                                       </widget> 
    471                                       <packing> 
    472                                         <property name="expand">False</property> 
    473                                         <property name="position">1</property> 
    474                                       </packing> 
    475                                     </child> 
    476                                   </widget> 
    477                                   <packing> 
    478                                     <property name="expand">False</property> 
    479                                     <property name="fill">False</property> 
    480                                     <property name="position">2</property> 
    481                                   </packing> 
    482                                 </child> 
    483                               </widget> 
    484                             </child> 
    485                           </widget> 
    486                         </child> 
    487                         <child> 
    488                           <widget class="GtkLabel" id="label12"> 
    489                             <property name="visible">True</property> 
    490                             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    491                             <property name="label" translatable="yes">&lt;b&gt;Contact list&lt;/b&gt;</property> 
    492                             <property name="use_markup">True</property> 
     497                              </widget> 
     498                            </child> 
     499                            <child> 
     500                              <widget class="GtkLabel" id="label12"> 
     501                                <property name="visible">True</property> 
     502                                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     503                                <property name="label" translatable="yes">&lt;b&gt;Contact list&lt;/b&gt;</property> 
     504                                <property name="use_markup">True</property> 
     505                              </widget> 
     506                              <packing> 
     507                                <property name="type">label_item</property> 
     508                              </packing> 
     509                            </child> 
    493510                          </widget> 
    494511                          <packing> 
    495                             <property name="type">label_item</property> 
     512                            <property name="padding">8</property> 
     513                            <property name="position">0</property> 
     514                          </packing> 
     515                        </child> 
     516                        <child> 
     517                          <widget class="GtkCheckButton" id="main_mute"> 
     518                            <property name="label" translatable="yes">Mute</property> 
     519                            <property name="can_focus">True</property> 
     520                            <property name="receives_default">False</property> 
     521                            <property name="draw_indicator">True</property> 
     522                          </widget> 
     523                          <packing> 
     524                            <property name="position">1</property> 
     525                          </packing> 
     526                        </child> 
     527                        <child> 
     528                          <widget class="GtkHBox" id="internet_kind_controls"> 
     529                            <child> 
     530                              <widget class="GtkLabel" id="label7"> 
     531                                <property name="visible">True</property> 
     532                                <property name="label" translatable="yes">Internet connection:</property> 
     533                              </widget> 
     534                              <packing> 
     535                                <property name="position">0</property> 
     536                              </packing> 
     537                            </child> 
     538                            <child> 
     539                              <widget class="GtkComboBox" id="login_internet_kind1"> 
     540                                <property name="visible">True</property> 
     541                                <property name="active">0</property> 
     542                                <property name="items" translatable="yes">ADSL 
     543Fiber Channel</property> 
     544                                <signal name="changed" handler="linphone_gtk_internet_kind_changed"/> 
     545                              </widget> 
     546                              <packing> 
     547                                <property name="position">1</property> 
     548                              </packing> 
     549                            </child> 
     550                          </widget> 
     551                          <packing> 
     552                            <property name="position">2</property> 
    496553                          </packing> 
    497554                        </child> 
     
    11671224                                  <widget class="GtkTable" id="table1"> 
    11681225                                    <property name="visible">True</property> 
    1169                                     <property name="n_rows">3</property> 
     1226                                    <property name="n_rows">4</property> 
    11701227                                    <property name="n_columns">2</property> 
    11711228                                    <child> 
     
    12231280                                      <widget class="GtkComboBox" id="login_internet_kind"> 
    12241281                                        <property name="visible">True</property> 
     1282                                        <property name="active">0</property> 
    12251283                                        <property name="items" translatable="yes">ADSL 
    12261284Fiber Channel</property> 
     1285                                        <signal name="changed" handler="linphone_gtk_internet_kind_changed"/> 
    12271286                                      </widget> 
    12281287                                      <packing> 
     
    12331292                                      </packing> 
    12341293                                    </child> 
     1294                                    <child> 
     1295                                      <widget class="GtkCheckButton" id="automatic_login"> 
     1296                                        <property name="label" translatable="yes">Automatically log me in</property> 
     1297                                        <property name="visible">True</property> 
     1298                                        <property name="can_focus">True</property> 
     1299                                        <property name="receives_default">False</property> 
     1300                                        <property name="draw_indicator">True</property> 
     1301                                      </widget> 
     1302                                      <packing> 
     1303                                        <property name="left_attach">1</property> 
     1304                                        <property name="right_attach">2</property> 
     1305                                        <property name="top_attach">3</property> 
     1306                                        <property name="bottom_attach">4</property> 
     1307                                      </packing> 
     1308                                    </child> 
     1309                                    <child> 
     1310                                      <placeholder/> 
     1311                                    </child> 
    12351312                                  </widget> 
    12361313                                </child> 
     
    12561333                            <property name="visible">True</property> 
    12571334                            <child> 
    1258                               <widget class="GtkButton" id="button1"> 
     1335                              <widget class="GtkButton" id="login_connect"> 
    12591336                                <property name="label" translatable="yes">gtk-connect</property> 
    12601337                                <property name="visible">True</property> 
  • linphone/gtk-glade/support.c

    r572 r680  
    189189} 
    190190 
     191void linphone_gtk_set_ui_config_int(const char *key , int val){ 
     192        LpConfig *cfg=linphone_core_get_config(linphone_gtk_get_core()); 
     193        lp_config_set_int(cfg,"GtkUi",key,val); 
     194} 
    191195 
     196 
Note: See TracChangeset for help on using the changeset viewer.