/* * saveas - a wrapper around Save_InitSaveWindowhandler */ static void saveas(int iFileType, char *szOutfile, size_t tEstSize, save_filesaver save_function, void *pvReference) { TRACE_MSG("saveas"); if (tSaveWindow == 0) { tSaveWindow = Window_Create("xfer_send", template_TITLEMIN); } Icon_SetText(tSaveWindow, FILENAME_ICON, szOutfile); Window_Show(tSaveWindow, open_UNDERPOINTER); (void)Save_InitSaveWindowHandler(tSaveWindow, FALSE, TRUE, TRUE, DRAG_SPRITE, OK_BUTTON, CANCEL_BUTTON, FILENAME_ICON, save_function, NULL, NULL, tEstSize, iFileType, pvReference); } /* end of saveas */
PyObject* Window_DoModal(Window *self, PyObject *args) { if (self->bIsPythonWindow) { self->bModal = true; if(self->iWindowId != ACTIVE_WINDOW) Window_Show(self, NULL); while (self->bModal && !g_application.m_bStop) { PyXBMC_MakePendingCalls(); CPyThreadState pyState; if (WindowXML_Check(self)) ((CGUIPythonWindowXML*)self->pWindow)->WaitForActionEvent(INFINITE); else if (WindowXMLDialog_Check(self)) ((CGUIPythonWindowXMLDialog*)self->pWindow)->WaitForActionEvent(INFINITE); else ((CGUIPythonWindow*)self->pWindow)->WaitForActionEvent(INFINITE); } } Py_INCREF(Py_None); return Py_None; }