예제 #1
0
static gchar *read_text_file(gchar *filename){

  gchar *buffer=NULL;

  Document *document;
  gphpedit_debug(DEBUG_CLASSBROWSER);
  DocumentManager *docmg = document_manager_new();
  document = document_manager_find_document_from_filename (docmg, filename);  
  g_object_unref(docmg);
  if (!buffer){
    buffer = read_text_file_sync(filename);
  }
//  g_print("buffer:<---\n%s\n--->",buffer);
  return buffer;
}
예제 #2
0
void filebrowser_backend_open_file (FilebrowserBackend *fbback, gchar *filename){
  gphpedit_debug(DEBUG_FILEBROWSER);
  DocumentManager *docmg = document_manager_new();
  document_manager_switch_to_file_or_open(docmg,filename, 0);
  g_object_unref(docmg);
}