mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Renamed clear and close functions in ui
This commit is contained in:
parent
4257fc87e5
commit
345c21bbce
@ -2302,7 +2302,7 @@ _cmd_tiny(gchar **args, struct cmd_help_t help)
|
|||||||
static gboolean
|
static gboolean
|
||||||
_cmd_clear(gchar **args, struct cmd_help_t help)
|
_cmd_clear(gchar **args, struct cmd_help_t help)
|
||||||
{
|
{
|
||||||
win_current_clear();
|
ui_clear_current();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2338,7 +2338,7 @@ _cmd_close(gchar **args, struct cmd_help_t help)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// close the window
|
// close the window
|
||||||
win_current_close();
|
ui_close_current();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -513,14 +513,14 @@ ui_switch_win(const int i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
win_current_clear(void)
|
ui_clear_current(void)
|
||||||
{
|
{
|
||||||
wclear(current->win);
|
wclear(current->win);
|
||||||
dirty = TRUE;
|
dirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
win_current_close(void)
|
ui_close_current(void)
|
||||||
{
|
{
|
||||||
window_free(current);
|
window_free(current);
|
||||||
windows[current_index] = NULL;
|
windows[current_index] = NULL;
|
||||||
|
@ -84,8 +84,8 @@ void title_bar_set_typing(gboolean is_typing);
|
|||||||
void title_bar_draw(void);
|
void title_bar_draw(void);
|
||||||
|
|
||||||
// current window actions
|
// current window actions
|
||||||
void win_current_close(void);
|
void ui_close_current(void);
|
||||||
void win_current_clear(void);
|
void ui_clear_current(void);
|
||||||
int win_current_is_console(void);
|
int win_current_is_console(void);
|
||||||
int win_current_is_chat(void);
|
int win_current_is_chat(void);
|
||||||
int win_current_is_groupchat(void);
|
int win_current_is_groupchat(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user