diff options
| author | James Booth <boothj5@gmail.com> | 2016-10-15 16:41:37 +0100 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2016-10-15 16:41:37 +0100 |
| commit | 6ed04d87b304490e6394c94132ee4e1ab8fe1a3b (patch) | |
| tree | ae2e0fcefdaad85a5a69fd9817221acb264cd147 | |
| parent | 8cf9e0ccccb616c3fec957b5a21a17e34172fced (diff) | |
| download | profani-tty-6ed04d87b304490e6394c94132ee4e1ab8fe1a3b.tar.gz | |
Rename win_get_string -> win_to_string
| -rw-r--r-- | src/ui/ui.h | 2 | ||||
| -rw-r--r-- | src/ui/window.c | 2 | ||||
| -rw-r--r-- | src/ui/window_list.c | 2 | ||||
| -rw-r--r-- | tests/unittests/ui/stub_ui.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 401ca8bd..26febee8 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -368,7 +368,7 @@ void win_show_info(ProfWin *window, PContact contact); void win_println(ProfWin *window, int pad, const char *const message); void win_vprintln_ch(ProfWin *window, char ch, const char *const message, ...); void win_clear(ProfWin *window); -char* win_get_string(ProfWin *window); +char* win_to_string(ProfWin *window); // desktop notifications void notifier_initialise(void); diff --git a/src/ui/window.c b/src/ui/window.c index 6f63976e..c5c2b9e4 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -314,7 +314,7 @@ win_get_title(ProfWin *window) } char* -win_get_string(ProfWin *window) +win_to_string(ProfWin *window) { assert(window != NULL); diff --git a/src/ui/window_list.c b/src/ui/window_list.c index 2f95ff79..6ef166d5 100644 --- a/src/ui/window_list.c +++ b/src/ui/window_list.c @@ -1051,7 +1051,7 @@ wins_create_summary(gboolean unread) GString *line = g_string_new(""); int ui_index = GPOINTER_TO_INT(curr->data); - char *winstring = win_get_string(window); + char *winstring = win_to_string(window); if (!winstring) { g_string_free(line, TRUE); continue; diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 740ce951..11f5b516 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -534,7 +534,7 @@ void win_show_info(ProfWin *window, PContact contact) {} void win_println(ProfWin *window, int pad, const char * const message) {} void win_vprintln_ch(ProfWin *window, char ch, const char *const message, ...) {} void win_clear(ProfWin *window) {} -char* win_get_string(ProfWin *window) +char* win_to_string(ProfWin *window) { return NULL; } |