diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-02 19:08:21 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-02 19:08:21 +0000 |
commit | df94b9a44ca6fe33d3ffc43f80f2ea9185dc3734 (patch) | |
tree | 7a952e97189b12230f63b4b78c53f28aa3744f99 /src/fe-common/core/fe-queries.c | |
parent | ed550c01d1aeb8ee94db3b288cfd343f7d750734 (diff) | |
download | irssi-df94b9a44ca6fe33d3ffc43f80f2ea9185dc3734.zip |
window_[add|remove]_item -> window_item_[add|remove]
added window_item_destroy(), window_item_remove() doesn't destroy the
item anymore
window_find_item()'s first parameter changed from WINDOW_REC to SERVER_REC
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@922 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-queries.c')
-rw-r--r-- | src/fe-common/core/fe-queries.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index 83d0f087..3398e418 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -65,7 +65,7 @@ static void signal_query_created_curwin(QUERY_REC *query) { g_return_if_fail(query != NULL); - window_add_item(active_win, (WI_ITEM_REC *) query, FALSE); + window_item_add(active_win, (WI_ITEM_REC *) query, FALSE); } static void signal_query_destroyed(QUERY_REC *query) @@ -76,7 +76,7 @@ static void signal_query_destroyed(QUERY_REC *query) window = window_item_window((WI_ITEM_REC *) query); if (window != NULL) { - window_remove_item(window, (WI_ITEM_REC *) query); + window_item_destroy(window, (WI_ITEM_REC *) query); if (window->items == NULL && windows->next != NULL && !query->unwanted && settings_get_bool("autoclose_windows")) @@ -84,7 +84,7 @@ static void signal_query_destroyed(QUERY_REC *query) } } -static void signal_window_item_removed(WINDOW_REC *window, WI_ITEM_REC *item) +static void signal_window_item_destroy(WINDOW_REC *window, WI_ITEM_REC *item) { QUERY_REC *query; @@ -289,7 +289,7 @@ void fe_queries_init(void) signal_add("query created", (SIGNAL_FUNC) signal_query_created); signal_add("query destroyed", (SIGNAL_FUNC) signal_query_destroyed); - signal_add_last("window item remove", (SIGNAL_FUNC) signal_window_item_removed); + signal_add_last("window item destroy", (SIGNAL_FUNC) signal_window_item_destroy); signal_add("server connected", (SIGNAL_FUNC) sig_server_connected); signal_add("window changed", (SIGNAL_FUNC) sig_window_changed); signal_add_first("message private", (SIGNAL_FUNC) sig_message_private); @@ -308,7 +308,7 @@ void fe_queries_deinit(void) signal_remove("query created", (SIGNAL_FUNC) signal_query_created); signal_remove("query destroyed", (SIGNAL_FUNC) signal_query_destroyed); - signal_remove("window item remove", (SIGNAL_FUNC) signal_window_item_removed); + signal_remove("window item destroy", (SIGNAL_FUNC) signal_window_item_destroy); signal_remove("server connected", (SIGNAL_FUNC) sig_server_connected); signal_remove("window changed", (SIGNAL_FUNC) sig_window_changed); signal_remove("message private", (SIGNAL_FUNC) sig_message_private); |