コード例 #1
0
ファイル: client.c プロジェクト: pecarter-work/jwm
/** 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
ファイル: root.c プロジェクト: GustavoMOG/JWM
/** Exit with optional confirmation. */
void Exit() {
   if(showExitConfirmation) {
      ShowConfirmDialog(NULL, ExitHandler,
         "Exit JWM",
         "Are you sure?",
         NULL);
   } else {
      ExitHandler(NULL);
   }
}
コード例 #3
0
ファイル: root.c プロジェクト: Nehamkin/jwm
/** Exit with optional confirmation. */
void Exit(void)
{
   if(settings.exitConfirmation) {
      ShowConfirmDialog(NULL, ExitHandler,
                        _("Exit JWM"),
                        _("Are you sure?"),
                        NULL);
   } else {
      ExitHandler(NULL);
   }
}