-#ifdef USE_LIBGLADE
-
-GtkWidget *linphone_gtk_create_window(const char *window_name){
- GtkWidget *w;
- GladeXML *gxml;
- char path[2048];
- snprintf(path,sizeof(path),"%s/%s.glade",BUILD_TREE_XML_DIR,window_name);
- if (access(path,F_OK)!=0){
- snprintf(path,sizeof(path),"%s/%s.glade",INSTALLED_XML_DIR,window_name);
- if (access(path,F_OK)!=0){
- g_error("Could not locate neither %s/%s.glade and %s/%s.glade .",BUILD_TREE_XML_DIR,window_name,
- INSTALLED_XML_DIR,window_name);
- return NULL;
- }
- }
- gxml=glade_xml_new(path,NULL,NULL);
- glade_xml_signal_autoconnect(gxml);
- w=glade_xml_get_widget(gxml,window_name);
- if (w==NULL) g_error("Could not retrieve '%s' window from xml file",window_name);
- linphone_gtk_configure_window(w,window_name);
- return w;
-}
-
-GtkWidget *linphone_gtk_get_widget(GtkWidget *window, const char *name){
- GtkWidget *w;
- GladeXML *gxml=glade_get_widget_tree(window);
- if (gxml==NULL) g_error("Could not retrieve XML tree of window %s",name);
- w=glade_xml_get_widget(gxml,name);
- if (w==NULL) g_error("Could not retrieve widget %s",name);
- return GTK_WIDGET(w);
-}
-
-#else
-