mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Merge pull request #1246 from ailin-nemui/wrong-prefixes
correct wrong function prefixes
Module authors will have to adapt these changes:
[M] 'constant I_INPUT_READ' {G_INPUT_READ}
[M] 'constant I_INPUT_WRITE' {G_INPUT_WRITE}
[M] 'function int i_input_add(GIOChannel*, int, GInputFunction, void*)' {g_input_add}
[M] 'function int i_input_add_full(GIOChannel*, int, int, GInputFunction, void*)' {g_input_add_full}
[M] 'function int i_input_add_poll(int, int, int, GInputFunction, void*)' {g_input_add_poll}
[M] 'function GIOChannel* i_io_channel_new(int)' {g_io_channel_new}
[M] 'function int i_io_channel_read_block(GIOChannel*, void*, int)' {g_io_channel_read_block}
[M] 'function int i_io_channel_write_block(GIOChannel*, void*, int)' {g_io_channel_write_block}
[M] 'function int i_istr_cmp(gconstpointer, gconstpointer)' {g_istr_cmp}
[M] 'function int i_istr_equal(gconstpointer, gconstpointer)' {g_istr_equal}
[M] 'function guint i_istr_hash(gconstpointer)' {g_istr_hash}
[M] 'function void i_log_func(const char*, GLogLevelFlags, const char*)' {glog_func}
[M] 'function GSList* i_slist_delete_string(GSList*, const char*, GDestroyNotify)' {gslist_delete_string}
[M] 'function GSList* i_slist_find_icase_string(GSList*, const char*)' {gslist_find_icase_string}
[M] 'function GSList* i_slist_find_string(GSList*, const char*)' {gslist_find_string}
[M] 'function void* i_slist_foreach_find(GSList*, FOREACH_FIND_FUNC, void*)' {gslist_foreach_find}
[M] 'function void i_slist_free_full(GSList*, GDestroyNotify)' {gslist_free_full}
[M] 'function GSList* i_slist_remove_string(GSList*, const char*)' {gslist_remove_string}
[M] 'function char* i_slist_to_string(GSList*, const char*)' {gslist_to_string}
This commit is contained in:
commit
db9aa817d5
46 changed files with 181 additions and 231 deletions
|
|
@ -85,9 +85,8 @@ static void sig_input(void);
|
|||
|
||||
void input_listen_init(int handle)
|
||||
{
|
||||
readtag = g_input_add_poll(handle,
|
||||
G_PRIORITY_HIGH, G_INPUT_READ,
|
||||
(GInputFunction) sig_input, NULL);
|
||||
readtag = i_input_add_poll(handle, G_PRIORITY_HIGH, I_INPUT_READ,
|
||||
(GInputFunction) sig_input, NULL);
|
||||
}
|
||||
|
||||
void input_listen_deinit(void)
|
||||
|
|
|
|||
|
|
@ -1376,12 +1376,6 @@ void textbuffer_view_remove_lines_by_level(TEXT_BUFFER_VIEW_REC *view, int level
|
|||
term_refresh_thaw();
|
||||
}
|
||||
|
||||
static int g_free_true(void *data)
|
||||
{
|
||||
g_free(data);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Remove all lines from buffer. */
|
||||
void textbuffer_view_remove_all_lines(TEXT_BUFFER_VIEW_REC *view)
|
||||
{
|
||||
|
|
@ -1389,8 +1383,8 @@ void textbuffer_view_remove_all_lines(TEXT_BUFFER_VIEW_REC *view)
|
|||
|
||||
textbuffer_remove_all_lines(view->buffer);
|
||||
|
||||
g_hash_table_foreach_remove(view->bookmarks,
|
||||
(GHRFunc) g_free_true, NULL);
|
||||
g_hash_table_foreach(view->bookmarks, (GHFunc) g_free, NULL);
|
||||
g_hash_table_remove_all(view->bookmarks);
|
||||
|
||||
textbuffer_view_reset_cache(view);
|
||||
textbuffer_view_clear(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue