aboutsummaryrefslogtreecommitdiff
path: root/src/ui/accounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/accounts.c')
-rw-r--r--src/ui/accounts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/accounts.c b/src/ui/accounts.c
index ced1d68..4936c82 100644
--- a/src/ui/accounts.c
+++ b/src/ui/accounts.c
@@ -88,7 +88,7 @@ accounts_event(UI_ACCOUNTS_Handle *accounts,
88 if (accounts->selected) 88 if (accounts->selected)
89 GNUNET_CHAT_connect(app->chat.handle, accounts->selected); 89 GNUNET_CHAT_connect(app->chat.handle, accounts->selected);
90 else 90 else
91 accounts->create_dialog.window = accounts->window; 91 accounts->create_dialog.window = &(accounts->window);
92 break; 92 break;
93 } 93 }
94 default: 94 default:
@@ -103,7 +103,7 @@ accounts_event(UI_ACCOUNTS_Handle *accounts,
103 if (!(accounts->window)) 103 if (!(accounts->window))
104 return; 104 return;
105 105
106 const int height = getmaxy(accounts->window) - getbegy(accounts->window); 106 const int height = getmaxy(accounts->window);
107 const int y = accounts->line_selected - accounts->line_offset; 107 const int y = accounts->line_selected - accounts->line_offset;
108 108
109 if (y < 0) 109 if (y < 0)
@@ -130,7 +130,7 @@ _accounts_print_entry(UI_ACCOUNTS_Handle *accounts,
130 if (y < 0) 130 if (y < 0)
131 return GNUNET_YES; 131 return GNUNET_YES;
132 132
133 const int height = getmaxy(accounts->window) - getbegy(accounts->window); 133 const int height = getmaxy(accounts->window);
134 134
135 if (y >= height) 135 if (y >= height)
136 return GNUNET_NO; 136 return GNUNET_NO;