Пример #1
0
/** Kill a client window. */
void KillClient(ClientNode *np)
{
   Assert(np);
   ShowConfirmDialog(np, KillClientHandler,
      _("Kill this window?"),
      _("This may cause data to be lost!"),
      NULL);
}
Пример #2
0
/** Exit with optional confirmation. */
void Exit() {
   if(showExitConfirmation) {
      ShowConfirmDialog(NULL, ExitHandler,
         "Exit JWM",
         "Are you sure?",
         NULL);
   } else {
      ExitHandler(NULL);
   }
}
Пример #3
0
/** Exit with optional confirmation. */
void Exit(void)
{
   if(settings.exitConfirmation) {
      ShowConfirmDialog(NULL, ExitHandler,
                        _("Exit JWM"),
                        _("Are you sure?"),
                        NULL);
   } else {
      ExitHandler(NULL);
   }
}