about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-18 22:43:47 +0100
committerJames Booth <boothj5@gmail.com>2014-10-18 22:43:47 +0100
commitbd03bbad730a7b5f2a935dcda3f7b06184cb72d7 (patch)
tree0d83b14da72f7bb8c935594745abfe7b388c7d69 /src/ui
parentbb3f1b09099bd0cfdcc3d8335e330a82a87af8ae (diff)
downloadprofani-tty-bd03bbad730a7b5f2a935dcda3f7b06184cb72d7.tar.gz
Moved previous win function
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 12cc2055..899cc3fb 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -749,6 +749,28 @@ _ui_switch_win(const int i)
 }
 
 static void
+_ui_previous_win(void)
+{
+    ProfWin *new_current = wins_get_previous();
+    int i = wins_get_num(new_current);
+    wins_set_current_by_num(i);
+
+    new_current->unread = 0;
+
+    if (i == 1) {
+        title_bar_console();
+        status_bar_current(1);
+        status_bar_active(1);
+    } else {
+        GString *recipient_str = _get_recipient_string(new_current);
+        title_bar_set_recipient(recipient_str->str);
+        g_string_free(recipient_str, TRUE);
+        status_bar_current(i);
+        status_bar_active(i);
+    }
+}
+
+static void
 _ui_next_win(void)
 {
     ProfWin *new_current = wins_get_next();
@@ -945,28 +967,6 @@ _ui_untrust(const char * const recipient)
 }
 
 static void
-_ui_previous_win(void)
-{
-    ProfWin *new_current = wins_get_previous();
-    int i = wins_get_num(new_current);
-    wins_set_current_by_num(i);
-
-    new_current->unread = 0;
-
-    if (i == 1) {
-        title_bar_console();
-        status_bar_current(1);
-        status_bar_active(1);
-    } else {
-        GString *recipient_str = _get_recipient_string(new_current);
-        title_bar_set_recipient(recipient_str->str);
-        g_string_free(recipient_str, TRUE);
-        status_bar_current(i);
-        status_bar_active(i);
-    }
-}
-
-static void
 _ui_clear_current(void)
 {
     wins_clear_current();