Mention the "hold" resource

This commit is contained in:
Pierre Pronchery 2016-03-28 17:30:26 +02:00
parent 2f0b9716fc
commit f6c8ae0acd
2 changed files with 6 additions and 4 deletions

View File

@ -5,6 +5,7 @@ Terminal*allowSendEvents: true
!Terminal*faceName: 'Bitstream Vera Sans Mono' !Terminal*faceName: 'Bitstream Vera Sans Mono'
!Terminal*faceSize: 8 !Terminal*faceSize: 8
!Terminal*foreground: #000000 !Terminal*foreground: #000000
Terminal*hold: true
!Terminal*saveLines: 1000 !Terminal*saveLines: 1000
Terminal*toolBar: false Terminal*toolBar: false
!Terminal*VT100*background: #000000 !Terminal*VT100*background: #000000

View File

@ -186,8 +186,9 @@ Terminal * terminal_new(char const * shell, char const * directory)
if((terminal = object_new(sizeof(*terminal))) == NULL) if((terminal = object_new(sizeof(*terminal))) == NULL)
return NULL; return NULL;
terminal->shell = (shell != NULL) ? strdup(shell) : NULL; terminal->shell = (shell != NULL) ? string_new(shell) : NULL;
terminal->directory = (directory != NULL) ? strdup(directory) : NULL; terminal->directory = (directory != NULL)
? string_new(directory) : NULL;
terminal->tabs = NULL; terminal->tabs = NULL;
terminal->tabs_cnt = 0; terminal->tabs_cnt = 0;
terminal->window = NULL; terminal->window = NULL;
@ -251,8 +252,8 @@ void terminal_delete(Terminal * terminal)
if(terminal->window != NULL) if(terminal->window != NULL)
gtk_widget_destroy(terminal->window); gtk_widget_destroy(terminal->window);
free(terminal->tabs); free(terminal->tabs);
free(terminal->directory); string_delete(terminal->directory);
free(terminal->shell); string_delete(terminal->shell);
object_delete(terminal); object_delete(terminal);
} }