bool QuartzHandler::reset(unsigned long changed) { quartz_initialized = false; freePixmaps(); readConfig(); createPixmaps(); quartz_initialized = true; // Do we need to "hit the wooden hammer" ? bool needHardReset = true; if(changed & SettingColors) { needHardReset = false; } else if(changed & SettingButtons) { // handled by KCommonDecoration needHardReset = false; } if(needHardReset) { return true; } else { resetDecorations(changed); return false; } return true; }
/////////////////////////////////////////////////////////////////////////////////////////// // // CS : PUBLIC void closeApplication(void) // IN : None. // OUT : None. // RETURN : None. // PUBLIC void closeApplication(void) { // Free message ID area. if (gPrinterStatus.pMessageID != NULL) { free(gPrinterStatus.pMessageID); /* for GTK2 ver280 */ gPrinterStatus.pMessageID = NULL; } // Free pixmaps of cartridge. freePixmaps(); // Stop calling timeout function. if (gTimeoutFuncTag != 0) { gtk_timeout_remove(gTimeoutFuncTag); } // Close application. //printf("g_pid = %d\n", g_pid); if( g_pid > 0 ){ //printf("g_signal = %d\n",g_signal); //2.30.01.008 delete Ubuntu 8.10 SIGCHLD receive first //if( g_signal == 0 ){ kill(g_pid, SIGTERM); //printf("send child SIGTERM = %d\n",kill(g_pid, SIGTERM)); //} waitpid( g_pid, NULL, 0 ); //printf("***waitpid child SIGTERM\n"); } //dont't nessesarry 20071115 //g_signal = 1; gtk_main_quit(); return; }// End closeApplication
QuartzHandler::~QuartzHandler() { quartz_initialized = false; freePixmaps(); }