Add support for form edition in command execution

Also change wins_get_by_string prototype in order to handle const str.
This commit is contained in:
Paul Fariello
2018-03-23 21:10:10 +02:20
parent 40eee1caab
commit 7123e94e82
3 changed files with 26 additions and 9 deletions

View File

@@ -364,7 +364,7 @@ wins_get_by_num(int i)
}
ProfWin*
wins_get_by_string(char *str)
wins_get_by_string(const char *str)
{
if (g_strcmp0(str, "console") == 0) {
ProfWin *conswin = wins_get_console();

View File

@@ -68,7 +68,7 @@ ProfWin* wins_get_current(void);
void wins_set_current_by_num(int i);
ProfWin* wins_get_by_num(int i);
ProfWin* wins_get_by_string(char *str);
ProfWin* wins_get_by_string(const char *str);
ProfWin* wins_get_next(void);
ProfWin* wins_get_previous(void);