Changeset 211:20bd4c58bdca in mediastreamer2


Ignore:
Timestamp:
Dec 30, 2008 11:29:22 AM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

customization of icon.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/gtk-glade/main.c

    r210 r211  
    4040#endif 
    4141 
     42#define LINPHONE_ICON "linphone2.png" 
    4243 
    4344static LinphoneCore *the_core=NULL; 
     
    627628 
    628629static void linphone_gtk_init_status_icon(){ 
    629         GdkPixbuf *pbuf=create_pixbuf("linphone2.png"); 
     630        const char *icon_path=linphone_gtk_get_ui_config("icon",LINPHONE_ICON); 
     631        GdkPixbuf *pbuf=create_pixbuf(icon_path); 
    630632        GtkWidget *menu=create_icon_menu(); 
    631633        const char *title; 
     
    694696        static const char *title; 
    695697        static const char *home; 
     698        static const char *icon_path; 
    696699        GtkWidget *w=linphone_gtk_get_main_window(); 
    697700        if (!config_loaded){ 
     
    699702                title=linphone_gtk_get_ui_config("title",NULL); 
    700703                home=linphone_gtk_get_ui_config("home","http://www.linphone.org"); 
     704                icon_path=linphone_gtk_get_ui_config("icon",NULL); 
    701705                config_loaded=TRUE; 
    702706        } 
    703707        if (show_digits==0) gtk_widget_hide(linphone_gtk_get_widget(w,"dialpad")); 
    704708        if (title) gtk_window_set_title(GTK_WINDOW(w),title); 
     709        if (icon_path) { 
     710                GdkPixbuf *pbuf=create_pixbuf(icon_path); 
     711                gtk_window_set_icon(GTK_WINDOW(w),pbuf); 
     712                g_object_unref(G_OBJECT(pbuf)); 
     713        } 
    705714        if (home){ 
    706715                gchar *tmp; 
Note: See TracChangeset for help on using the changeset viewer.