void window_item_destroy(WI_ITEM_REC *item) { WINDOW_REC *window; window = window_item_window(item); window_item_remove(item); item->destroy(item); }
void window_item_set_active(WINDOW_REC *window, WI_ITEM_REC *item) { g_return_if_fail(window != NULL); if (item != NULL && window_item_window(item) != window) { /* move item to different window */ window_item_remove(item); window_item_add(window, item, FALSE); } if (window->active != item) { window->active = item; if (item != NULL && window->active_server != item->server) window_change_server(window, item->server); signal_emit("window item changed", 2, window, item); } }
void window_item_destroy(WI_ITEM_REC *item) { window_item_remove(item); item->destroy(item); }