Mention the "hold" resource
This commit is contained in:
parent
2f0b9716fc
commit
f6c8ae0acd
|
@ -5,6 +5,7 @@ Terminal*allowSendEvents: true
|
|||
!Terminal*faceName: 'Bitstream Vera Sans Mono'
|
||||
!Terminal*faceSize: 8
|
||||
!Terminal*foreground: #000000
|
||||
Terminal*hold: true
|
||||
!Terminal*saveLines: 1000
|
||||
Terminal*toolBar: false
|
||||
!Terminal*VT100*background: #000000
|
||||
|
|
|
@ -186,8 +186,9 @@ Terminal * terminal_new(char const * shell, char const * directory)
|
|||
|
||||
if((terminal = object_new(sizeof(*terminal))) == NULL)
|
||||
return NULL;
|
||||
terminal->shell = (shell != NULL) ? strdup(shell) : NULL;
|
||||
terminal->directory = (directory != NULL) ? strdup(directory) : NULL;
|
||||
terminal->shell = (shell != NULL) ? string_new(shell) : NULL;
|
||||
terminal->directory = (directory != NULL)
|
||||
? string_new(directory) : NULL;
|
||||
terminal->tabs = NULL;
|
||||
terminal->tabs_cnt = 0;
|
||||
terminal->window = NULL;
|
||||
|
@ -251,8 +252,8 @@ void terminal_delete(Terminal * terminal)
|
|||
if(terminal->window != NULL)
|
||||
gtk_widget_destroy(terminal->window);
|
||||
free(terminal->tabs);
|
||||
free(terminal->directory);
|
||||
free(terminal->shell);
|
||||
string_delete(terminal->directory);
|
||||
string_delete(terminal->shell);
|
||||
object_delete(terminal);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user